* 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.
This commit is contained in:
Christopher Faylor
2005-01-16 17:13:51 +00:00
parent 85b3fb9640
commit 459a956197
3 changed files with 22 additions and 3 deletions

View File

@@ -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)
{