commit: b16625e62502c2924f9c00ab144845b93857f6c7
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue Nov 1 22:31:35 2016 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Nov 3 18:20:48 2016 +0000
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b16625e6
src/rc/rc: do not try to start services if fork fails
src/rc/rc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 118c2d1..110591e 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);