X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fwait-process.h;h=9cdce30478ad299ca682df8505d3e557e9686b73;hb=4a6f6ccf4f28947ff868115b73434a9c5af32727;hp=f1f777674043be607fcd961521740ff81e1c06a0;hpb=6d8d4e520be656b646a6f5cf7ebebfc31c178022;p=gnulib.git diff --git a/lib/wait-process.h b/lib/wait-process.h index f1f777674..9cdce3047 100644 --- a/lib/wait-process.h +++ b/lib/wait-process.h @@ -34,14 +34,11 @@ extern "C" { /* Wait for a subprocess to finish. Return its exit code. If it didn't terminate correctly, exit if exit_on_error is true, otherwise - return 127 and set exitsignal if the child terminated because of a signal. + return 127. Arguments: - child is the pid of the subprocess. - progname is the name of the program executed by the subprocess, used for error messages. - - exitsignal is an optional pointer to an int to hold the signal number of - any signal that caused the child to exit. It will be set to zero if this - function exits with an error not caused by the child catching a signal. - If ignore_sigpipe is true, consider a subprocess termination due to SIGPIPE as equivalent to a success. This is suitable for processes whose only purpose is to write to standard output. This flag can be safely set @@ -53,7 +50,6 @@ extern "C" { - If exit_on_error is true, any error will cause the main process to exit with an error status. */ extern int wait_subprocess (pid_t child, const char *progname, - int *exitsignal, bool ignore_sigpipe, bool null_stderr, bool slave_process, bool exit_on_error);