summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-05 03:21:32 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-05 03:21:32 +0000
commit8948b6585dc2d0d34ddb7a07832b402adcc812a9 (patch)
treed651f62e6a20c27897857f71ae26154f0d55bfd5
parent43a299881f1b6e3a7ea900b0c818f9029e13e107 (diff)
downloadcygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.tar.gz
cygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.tar.bz2
cygnal-8948b6585dc2d0d34ddb7a07832b402adcc812a9.zip
* fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error
condition from cmdline retrieval.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_process.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 4e96ee44d..c35a6f6a0 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2002-11-04 Christopher Faylor <cgf@redhat.com>
+ * fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error
+ condition from cmdline retrieval.
+
+2002-11-04 Christopher Faylor <cgf@redhat.com>
+
* sigproc.cc (WAIT_SIG_PRIORITY): Bump to highest priority.
2002-11-04 Christopher Faylor <cgf@redhat.com>
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index a9e8d2f0c..03000a21d 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -301,7 +301,7 @@ fhandler_process::fill_filebuf ()
if (filebuf)
free (filebuf);
filebuf = p->cmdline (filesize);
- if (!*filebuf)
+ if (!filebuf || !*filebuf)
filebuf = strdup ("<defunct>");
break;
}