summaryrefslogtreecommitdiff
path: root/process-posix.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-23 21:43:07 -0500
committerpommicket <pommicket@gmail.com>2022-12-23 21:43:07 -0500
commit8d96a4b0f0ebb059a63cc4c3193e0169ccf4f5b5 (patch)
tree7155b5d90b9eb8836fa637ed1db44f4e3304fdba /process-posix.c
parentaabe543ee93796330158fa7fd247fb1ebeb8e3bb (diff)
framework for having multiple/configurable LSPs
Diffstat (limited to 'process-posix.c')
-rw-r--r--process-posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/process-posix.c b/process-posix.c
index c8ea376..57af73f 100644
--- a/process-posix.c
+++ b/process-posix.c
@@ -50,6 +50,7 @@ bool process_run_ex(Process *proc, const char *command, const ProcessSettings *s
pid_t pid = fork();
if (pid == 0) {
// child process
+ chdir(settings->working_directory);
// put child in its own group. it will be in this group with all of its descendents,
// so by killing everything in the group, we kill all the descendents of this process.
// if we didn't do this, we would just be killing the sh process in process_kill.