+2001-11-01 Bruno Haible <haible@clisp.cons.org>
+
+ * execute.c (execute): If the subprocess fails, exit with return code
+ 127, not -1 (which becomes 255).
+ * pipe-bidi.c (create_pipe_bidi): Likewise.
+ * pipe-in.c (create_pipe_in): Likewise.
+ * pipe-out.c (create_pipe_out): Likewise.
+
2001-10-31 Bruno Haible <haible@clisp.cons.org>
* Makefile.am (execute.lo, javacomp.lo, javaexec.lo, pipe-bidi.lo,
|| (null_stderr && nulloutfd == STDERR_FILENO)
|| close (nulloutfd) >= 0))))
execvp (prog_path, prog_argv);
- _exit (-1);
+ _exit (127);
}
if (child == -1)
{
|| (dup2 (nulloutfd, STDERR_FILENO) >= 0
&& close (nulloutfd) >= 0)))))
execvp (prog_path, prog_argv);
- _exit (-1);
+ _exit (127);
}
if (child == -1)
{
|| (dup2 (stdinfd, STDIN_FILENO) >= 0
&& close (stdinfd) >= 0)))
execvp (prog_path, prog_argv);
- _exit (-1);
+ _exit (127);
}
if (child == -1)
{
|| (dup2 (stdoutfd, STDOUT_FILENO) >= 0
&& close (stdoutfd) >= 0)))
execvp (prog_path, prog_argv);
- _exit (-1);
+ _exit (127);
}
if (child == -1)
{