summaryrefslogtreecommitdiff
path: root/process.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-16 11:07:46 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-16 11:07:46 -0500
commitfcb74112105e45ffc0a26aca7d952e84b05c782c (patch)
tree2696401189b65229c4a5f64f9b98d0e276cb277e /process.h
parentacfbdf2359f533f88e284b5f5219b5c671992fc7 (diff)
got WNOHANG to work
Diffstat (limited to 'process.h')
-rw-r--r--process.h4
1 files changed, 2 insertions, 2 deletions
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