diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-16 17:13:51 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-16 17:13:51 +0000 |
commit | 459a95619788793541553674eb5bb59888aa7f6a (patch) | |
tree | feb31a6dcdeeac9ba987b8248eb5887bced552b6 /winsup/utils/ps.cc | |
parent | 85b3fb9640eb423a640d86ccc713e91e0872fc8c (diff) | |
download | cygnal-459a95619788793541553674eb5bb59888aa7f6a.tar.gz cygnal-459a95619788793541553674eb5bb59888aa7f6a.tar.bz2 cygnal-459a95619788793541553674eb5bb59888aa7f6a.zip |
* ps.cc (main): Eliminate use of PID_ZOMBIE.
* strace.cc (main): Recognize new option for displaying hex value of strace
type.
(handle_output_debug_string): Prepend output with hex value of strace message
if -H is specified.
Diffstat (limited to 'winsup/utils/ps.cc')
-rw-r--r-- | winsup/utils/ps.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc index 843693598..12b60fd08 100644 --- a/winsup/utils/ps.cc +++ b/winsup/utils/ps.cc @@ -345,7 +345,7 @@ main (int argc, char *argv[]) status = 'O'; char pname[MAX_PATH]; - if (p->process_state & (PID_ZOMBIE | PID_EXITED)) + if (p->process_state & PID_EXITED || (p->exitcode & ~0xffff)) strcpy (pname, "<defunct>"); else if (p->ppid) { |