From fcb74112105e45ffc0a26aca7d952e84b05c782c Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 16 Feb 2021 11:07:46 -0500 Subject: got WNOHANG to work --- process.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'process.h') diff --git a/process.h b/process.h index 2b34120..a21fd5b 100644 --- a/process.h +++ b/process.h @@ -5,9 +5,9 @@ typedef struct Process Process; // returns NULL on failure -Process *process_exec(char const *program, char **argv); +bool process_exec(Process *process, char const *program, char **argv); // returns the error last error produced, or NULL if there was no error. -char const *process_geterr(void); +char const *process_geterr(Process *process); // returns: // -2 on error // -1 if no data is available right now -- cgit v1.2.3