diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 2 | ||||
-rw-r--r-- | runit/runsvdir.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 2ab034af6..e3b507d25 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -640,7 +640,7 @@ int runsv_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
640 | 640 | ||
641 | if (svd[0].want == W_EXIT && svd[0].state == S_DOWN) { | 641 | if (svd[0].want == W_EXIT && svd[0].state == S_DOWN) { |
642 | if (svd[1].pid == 0) | 642 | if (svd[1].pid == 0) |
643 | _exit(0); | 643 | _exit(EXIT_SUCCESS); |
644 | if (svd[1].want != W_EXIT) { | 644 | if (svd[1].want != W_EXIT) { |
645 | svd[1].want = W_EXIT; | 645 | svd[1].want = W_EXIT; |
646 | /* stopservice(&svd[1]); */ | 646 | /* stopservice(&svd[1]); */ |
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 32e4764d1..b4450c00c 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -343,7 +343,7 @@ int runsvdir_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
343 | 343 | ||
344 | switch (exitsoon) { | 344 | switch (exitsoon) { |
345 | case 1: | 345 | case 1: |
346 | _exit(0); | 346 | _exit(EXIT_SUCCESS); |
347 | case 2: | 347 | case 2: |
348 | for (i = 0; i < svnum; i++) | 348 | for (i = 0; i < svnum; i++) |
349 | if (sv[i].pid) | 349 | if (sv[i].pid) |