We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7375a commit 2056c89Copy full SHA for 2056c89
1 file changed
main.c
@@ -88,7 +88,11 @@ static _Noreturn void main_pause(void) {
88
set_handler(SIGTERM, SIG_DFL);
89
set_handler(SIGCHLD, SIG_DFL);
90
91
- _exit(kill_all_and_wait_till_complete() ? 0 : 1);
+ if (getpid() == 1) {
92
+ _exit(kill_all_and_wait_till_complete() ? 0 : 1);
93
+ } else {
94
+ _exit(0);
95
+ }
96
}
97
98
static pid_t cpid;
0 commit comments