summaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-06 18:25:44 -0500
committerpommicket <pommicket@gmail.com>2023-01-06 18:25:44 -0500
commit1780e6ac17c208d749deee31af541a04e3b123fe (patch)
tree9a80e31b79f9ee2766aa7bb1c9d542e7ded20aba /os.h
parent082daa54c41c44ad1e878485237faea8f9a60678 (diff)
check LSP process status
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_