src/rc/rc: do not try to start services if fork fails

This commit is contained in:
William Hubbs 2016-11-01 17:31:35 -05:00
parent 003657c973
commit be06cd250e

View File

@ -683,6 +683,8 @@ do_start_services(const RC_STRINGLIST *start_services, bool parallel)
} }
pid = service_start(service->value); pid = service_start(service->value);
if (pid == -1)
break;
/* Remember the pid if we're running in parallel */ /* Remember the pid if we're running in parallel */
if (pid > 0) { if (pid > 0) {
add_pid(pid); add_pid(pid);