diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-09-25 17:29:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-09-25 17:29:17 +0200 |
commit | 497217a3e09b577f650aaf503356588515067ca8 (patch) | |
tree | 2fd43b747957510c55d66caf81df30732c39c398 /src/Process.cpp | |
parent | 663a36df4aaea583e7cd56ad35b26d05f6151746 (diff) |
widgets
Diffstat (limited to 'src/Process.cpp')
-rw-r--r-- | src/Process.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Process.cpp b/src/Process.cpp index 96f6840..c00d547 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -11,7 +11,7 @@ namespace gsr { bool exec_program_daemonized(const char **args) { /* 1 argument */ if(args[0] == nullptr) - return -1; + return false; pid_t pid = vfork(); if(pid == -1) { @@ -28,11 +28,13 @@ namespace gsr { perror("execvp"); _exit(127); } else if(second_child != -1) { + // TODO: _exit(0); } } else { /* parent */ waitpid(pid, nullptr, 0); } + return true; } |