summaryrefslogtreecommitdiff
path: root/process-posix.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-05 12:40:13 -0500
committerpommicket <pommicket@gmail.com>2022-12-05 12:40:13 -0500
commit074df673a792ce92a972095803f18749b8d92ea3 (patch)
tree2ba7feaa377f5aca57b576e91222435a067829cc /process-posix.c
parent4dc976bc793af39ebad715ef669b335657926f65 (diff)
more lsp, start json parser
Diffstat (limited to 'process-posix.c')
-rw-r--r--process-posix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/process-posix.c b/process-posix.c
index 81c3ff5..1463487 100644
--- a/process-posix.c
+++ b/process-posix.c
@@ -11,6 +11,10 @@ struct Process {
char error[64];
};
+int process_get_id(void) {
+ return getpid();
+}
+
bool process_run_ex(Process *proc, const char *command, const ProcessSettings *settings) {
memset(proc, 0, sizeof *proc);