diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2016-11-01 17:31:35 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-11-01 17:31:57 -0500 |
commit | be06cd250e12e63b8eb704bb2508e06fb9791251 (patch) | |
tree | 2ce7c3f3b07ad0f38c65cc269c1dca5ad2e26eb3 /src/rc | |
parent | 003657c973ea338a19f2b7294190af9d76cf5cea (diff) |
src/rc/rc: do not try to start services if fork fails
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/rc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 118c2d1c..110591e4 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -683,6 +683,8 @@ do_start_services(const RC_STRINGLIST *start_services, bool parallel) } pid = service_start(service->value); + if (pid == -1) + break; /* Remember the pid if we're running in parallel */ if (pid > 0) { add_pid(pid); |