diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 61eb02e64..bd4a81eee 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -303,7 +303,8 @@ static void startservice(struct svdir *s) | |||
303 | } | 303 | } |
304 | run[1] = NULL; | 304 | run[1] = NULL; |
305 | 305 | ||
306 | if (s->pid != 0) stopservice(s); /* should never happen */ | 306 | if (s->pid != 0) |
307 | stopservice(s); /* should never happen */ | ||
307 | while ((p = fork()) == -1) { | 308 | while ((p = fork()) == -1) { |
308 | warn_cannot("fork, sleeping"); | 309 | warn_cannot("fork, sleeping"); |
309 | sleep(5); | 310 | sleep(5); |