From be06cd250e12e63b8eb704bb2508e06fb9791251 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 1 Nov 2016 17:31:35 -0500 Subject: src/rc/rc: do not try to start services if fork fails --- src/rc/rc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rc/rc.c') 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); -- cgit v1.2.3