[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8467: Bug#611591: emacs23: hangs while waiting for child on hurd-i38
From: |
Rob Browning |
Subject: |
bug#8467: Bug#611591: emacs23: hangs while waiting for child on hurd-i386 |
Date: |
Sun, 10 Apr 2011 10:05:40 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
(If possible, please preserve the 611591-forwarded address in any replies.)
It looks like there may be a problem with wait_for_termination() on
GNU/Hurd systems.
Samuel Thibault <sthibault@debian.org> writes:
> emacs23 would sometimes hang while waiting for a child. This is because
> wait_for_termination assumes that on all BSD-like systems kill() returns
> -1 on zombies. It happens that GNU/Hurd is a BSD-like system, but its
> kill() returns 0 on zombies.
>
> The attached patch fixes that.
--- a/src/sysdep.c 2011-01-31 01:10:24.000000000 +0100
+++ b/src/sysdep.c 2011-01-31 01:10:47.000000000 +0100
@@ -411,7 +411,7 @@
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. */
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
- bug#8467: Bug#611591: emacs23: hangs while waiting for child on hurd-i386,
Rob Browning <=