Mail Archives: djgpp-workers/1998/10/13/12:04:26
On Tue, 13 Oct 1998, DJ Delorie wrote:
> pclose returns the exit code of the program it runs.
So the present version of pclose in the latest alpha (and the one in
patched libc) is okay.
Robert, it seems that CVS has a bug in that it relies on zero being
returned, even if diff3 ecits with non-zero status, since this is
contrary to Posix.
> POSIX assumes
> you can always run the shell (which is what popen is supposed to use);
> problems getting the shell started are supposed to be returned by
> popen.
We do both, actually: if popen cannot run the program, it returns NULL
(after the last patch I sent in) *and* pclose will return -1 (if called,
since many programs won't bother to call it after getting NULL from popen).
- Raw text -