aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-01 04:05:50 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-01 04:05:50 +0100
commit1591c329889b0cd6eb3d579e60eeaf93df131a71 (patch)
tree78326c120dc2934b2d5b44efb2b23be60b6a2498 /src
parent430cd0cf13ffda3d9850f7a17f25bed51233ad63 (diff)
oops
Diffstat (limited to 'src')
-rw-r--r--src/Program.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Program.cpp b/src/Program.cpp
index 33f5cd0..736532e 100644
--- a/src/Program.cpp
+++ b/src/Program.cpp
@@ -230,8 +230,8 @@ int exec_program_async(const char **args, pid_t *result_process_id) {
} else { /* parent */
if(result_process_id)
*result_process_id = pid;
-
- waitpid(pid, nullptr, 0);
+ else
+ waitpid(pid, nullptr, 0);
}
return 0;
}