* 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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user