diff options
Diffstat (limited to 'runit/runsv.c')
-rw-r--r-- | runit/runsv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 6d34dc133..5cb5d2f13 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -252,7 +252,8 @@ static unsigned custom(struct svdir *s, char c) | |||
252 | char a[10]; | 252 | char a[10]; |
253 | struct stat st; | 253 | struct stat st; |
254 | 254 | ||
255 | if (s->islog) return 0; | 255 | if (s->islog) |
256 | return 0; | ||
256 | strcpy(a, "control/?"); | 257 | strcpy(a, "control/?"); |
257 | a[8] = c; /* replace '?' */ | 258 | a[8] = c; /* replace '?' */ |
258 | if (stat(a, &st) == 0) { | 259 | if (stat(a, &st) == 0) { |
@@ -274,7 +275,7 @@ static unsigned custom(struct svdir *s, char c) | |||
274 | warn_cannot("wait for child control/?"); | 275 | warn_cannot("wait for child control/?"); |
275 | return 0; | 276 | return 0; |
276 | } | 277 | } |
277 | return !wait_exitcode(w); | 278 | return WEXITSTATUS(w) == 0; |
278 | } | 279 | } |
279 | } else { | 280 | } else { |
280 | if (errno != ENOENT) | 281 | if (errno != ENOENT) |