aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-11-01 17:31:35 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-11-01 17:31:57 -0500
commitbe06cd250e12e63b8eb704bb2508e06fb9791251 (patch)
tree2ce7c3f3b07ad0f38c65cc269c1dca5ad2e26eb3 /src
parent003657c973ea338a19f2b7294190af9d76cf5cea (diff)
src/rc/rc: do not try to start services if fork fails
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc.c2
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);