src/rc/rc: do not try to start services if fork fails
This commit is contained in:
parent
003657c973
commit
be06cd250e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user