From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 75FDB1395E1 for ; Thu, 3 Nov 2016 16:13:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 073E5E0B1B; Thu, 3 Nov 2016 16:13:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2C37E0B1B for ; Thu, 3 Nov 2016 16:13:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F30CE341063 for ; Thu, 3 Nov 2016 16:13:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 911B5344 for ; Thu, 3 Nov 2016 16:13:06 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1478039517.be06cd250e12e63b8eb704bb2508e06fb9791251.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: be06cd250e12e63b8eb704bb2508e06fb9791251 X-VCS-Branch: master Date: Thu, 3 Nov 2016 16:13:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 40c04f24-9bd6-4fa0-be5c-650fe0a98154 X-Archives-Hash: c745efc34016379ec9624c25e39416a5 commit: be06cd250e12e63b8eb704bb2508e06fb9791251 Author: William Hubbs gmail com> AuthorDate: Tue Nov 1 22:31:35 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Nov 1 22:31:57 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=be06cd25 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);