Fix wait_for_termination on GNU Hurd (Bug#8467)
authorSamuel Thibault <sthibault@debian.org>
Sun, 10 Apr 2011 22:05:04 +0000 (18:05 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 10 Apr 2011 22:05:04 +0000 (18:05 -0400)
* sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on zombies.

src/ChangeLog
src/sysdep.c

index 3c6d4fc..f82494f 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-10  Samuel Thibault  <sthibault@debian.org>  (tiny change)
+
+       * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
+       zombies (Bug#8467).
+
 2011-04-10  Chong Yidong  <cyd@stupidchicken.com>
 
        * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
index 1fbc061..3abb43f 100644 (file)
@@ -411,7 +411,7 @@ wait_for_termination (pid)
   while (1)
     {
 #ifdef subprocesses
-#if defined (BSD_SYSTEM) || defined (HPUX)
+#if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__)
       /* Note that kill returns -1 even if the process is just a zombie now.
         But inevitably a SIGCHLD interrupt should be generated
         and child_sig will do wait3 and make the process go away. */