diff --git a/src/common/execio.h b/src/common/execio.h --- a/src/common/execio.h +++ b/src/common/execio.h @@ -31,7 +31,7 @@ enum execio_state EXECIO_STATE_ERROR, EXECIO_STATE_EOF }; - + struct execio { @@ -39,19 +39,19 @@ struct execio int pipe_read; enum execio_state state; - + pid_t child; }; /* runs progname with the arguments in argv. argv must be null terminated!!!!!!!!! - returns nonzsero return on error + returns nonzero return on error */ int execio_open(struct execio **rem, const char *progname, char *const argv[]); -/* - doesn't block, +/* + doesn't block, returns 0 on success, 1 on failure */ int execio_read(struct execio *eio, void *buf, size_t len, size_t *bytesread);