unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
To: 8467@debbugs.gnu.org
Cc: 611591@bugs.debian.org, 611591-forwarded@bugs.debian.org,
	Samuel Thibault <sthibault@debian.org>
Subject: bug#8467: Bug#611591: emacs23: hangs while waiting for child on hurd-i386
Date: Sun, 10 Apr 2011 10:05:40 -0500	[thread overview]
Message-ID: <87pqoui1tn.fsf@raven.defaultvalue.org> (raw)
In-Reply-To: <20110131001335.GA30106@const.famille.thibault.fr> (Samuel Thibault's message of "Mon, 31 Jan 2011 01:13:35 +0100")

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

(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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix-wait-for-termination-on-hurd.patch --]
[-- Type: text/x-diff, Size: 482 bytes --]

--- 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. */

[-- Attachment #3: Type: text/plain, Size: 127 bytes --]


-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

       reply	other threads:[~2011-04-10 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110131001335.GA30106@const.famille.thibault.fr>
2011-04-10 15:05 ` Rob Browning [this message]
2011-04-10 22:05   ` bug#8467: Bug#611591: emacs23: hangs while waiting for child on hurd-i386 Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqoui1tn.fsf@raven.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=611591-forwarded@bugs.debian.org \
    --cc=611591@bugs.debian.org \
    --cc=8467@debbugs.gnu.org \
    --cc=sthibault@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).