Subject: | Cygwin patch: PID_ZOMBIE => PID_ORPHANED |
Attached patch fixes compilation under recent cygwin.
cygwin.c (OS_get_table):
sys/cygwin.h renamed PID_ZOMBIE to PID_ORPHANED.
2005-09-29 21:28:29 rurban@cpan.org
* cygwin.c (OS_get_table): sys/cygwin.h renamed PID_ZOMBIE
to PID_ORPHANED.
--- Proc-ProcessTable-0.40/os/cygwin.c.orig 2005-06-30 03:39:45.000000000 +0000
+++ Proc-ProcessTable-0.40/os/cygwin.c 2005-09-29 19:26:22.042000000 +0000
@@ -209,7 +209,7 @@
else if (p->process_state & PID_TTYOU)
pstate = "ttyout";
- if (p->process_state & (PID_ZOMBIE | PID_EXITED))
+ if (p->process_state & (PID_ORPHANED | PID_EXITED))
strcpy (pname, "<defunct>");
else if (p->ppid)
{