summaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'os.h')
-rw-r--r--os.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/os.h b/os.h
index b7d189e..20135ff 100644
--- a/os.h
+++ b/os.h
@@ -123,10 +123,12 @@ long long process_read_stderr(Process *process, char *data, size_t size);
// 1 if the process exited successfully
// 0 if the process hasn't exited.
// If message is not NULL, it will be set to a description of what happened (e.g. "exited successfully")
-int process_check_status(Process *process, char *message, size_t message_size);
+// if the process is no longer running, *process will be freed and set to NULL.
+int process_check_status(Process **process, char *message, size_t message_size);
// kills process if still running
-// this also frees any resources used by `process`.
-void process_kill(Process *process);
+// this also frees any resources used by `*process`.
+// *process will be set to NULL.
+void process_kill(Process **process);
#endif // OS_H_