[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] addition: wait-process.h, wait-process.c, 2nd round
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] addition: wait-process.h, wait-process.c, 2nd round |
Date: |
Mon, 17 Nov 2003 22:31:57 +0100 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote on 2003-10-27:
> If you can assume the XSI standard extension to POSIX, it sounds like
> there is a way to solve the problem: you can pass WNOWAIT to waitpid.
> WNOWAIT keeps the process whose status is returned in a waitable
> state.
But waitid() with WNOWAIT doesn't work as one might expect from reading
POSIX: On Solaris 7, it returns -1 with errno = ECHILD although the process
is still present in the process table entry as a zombie (both before and after
the waitid() call). Likewise on OSF/1 4.0d. And on HP-UX 10.20, the code
that uses waitid() just hangs.
I thus have to disable this code again.
Bruno