From: Bruno Haible Date: Mon, 17 Nov 2003 21:27:18 +0000 (+0000) Subject: Don't use waitid(), after all. X-Git-Tag: v0.13~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb84e1c563dcd08e184c7abc3f8479201783415;p=thirdparty%2Fgettext.git Don't use waitid(), after all. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index f100501d6..1a604ea77 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-11-17 Bruno Haible + + * wait-process.c (wait_process): Disable the 2003-10-31 waitid() patch. + 2003-11-16 Bruno Haible * xsize.h (xmax): New function. diff --git a/gettext-tools/lib/wait-process.c b/gettext-tools/lib/wait-process.c index 26a889ca4..988916549 100644 --- a/gettext-tools/lib/wait-process.c +++ b/gettext-tools/lib/wait-process.c @@ -252,7 +252,10 @@ wait_subprocess (pid_t child, const char *progname, bool null_stderr, bool slave_process, bool exit_on_error) { -#if HAVE_WAITID && defined WNOWAIT +#if HAVE_WAITID && defined WNOWAIT && 0 + /* Commented out because waitid() with WNOWAIT doesn't work: On Solaris 7 + and OSF/1 4.0, it returns -1 and sets errno = ECHILD, and on HP-UX 10.20 + it just hangs. */ /* Use of waitid() with WNOWAIT avoids a race condition: If slave_process is true, and this process sleeps a very long time between the return from waitpid() and the execution of unregister_slave_subprocess(), and