Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-16 20:13:51 +0300
committerChristopher Faylor <me@cgf.cx>2005-01-16 20:13:51 +0300
commit459a95619788793541553674eb5bb59888aa7f6a (patch)
treefeb31a6dcdeeac9ba987b8248eb5887bced552b6 /winsup/utils/ps.cc
parent85b3fb9640eb423a640d86ccc713e91e0872fc8c (diff)
* 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.cc2
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)
{