diff options
Diffstat (limited to 'runit/sv.c')
-rw-r--r-- | runit/sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runit/sv.c b/runit/sv.c index 20e86199a..e3b9a4e31 100644 --- a/runit/sv.c +++ b/runit/sv.c | |||
@@ -337,7 +337,7 @@ static int checkscript(void) | |||
337 | bb_perror_msg(WARN"cannot %s child %s/check", "wait for", *service); | 337 | bb_perror_msg(WARN"cannot %s child %s/check", "wait for", *service); |
338 | return 0; | 338 | return 0; |
339 | } | 339 | } |
340 | return !wait_exitcode(w); | 340 | return WEXITSTATUS(w) == 0; |
341 | } | 341 | } |
342 | 342 | ||
343 | static int check(const char *a) | 343 | static int check(const char *a) |