X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fexec.c;h=97f33b3068401f616a1d65bf4bf3dd08a9bc59d3;hb=7c392448b0d2efcc6bb959063dcaa8b2c5ea0964;hp=65683dc87080bb58aab95629a4e07cf00853f5fe;hpb=d2a43a53786878c1273313249d3b49f6cd559b00;p=ion3.git diff --git a/ioncore/exec.c b/ioncore/exec.c index 65683dc..97f33b3 100644 --- a/ioncore/exec.c +++ b/ioncore/exec.c @@ -123,9 +123,11 @@ int ioncore_exec(const char *cmd) /*EXTL_DOC - * Run \var{cmd} with a read pipe connected to its stdout. - * When data is received through the pipe, \var{handler} is called - * with that data. + * Run \var{cmd} with a read pipe connected to its stdout and stderr. + * When data is received through one of these pipes, \var{h} or \var{errh} + * is called with that data. When the pipe is closed, the handler is called + * with \code{nil} argument. The PID of the new process is returned, or + * -1 on error. */ EXTL_SAFE EXTL_EXPORT