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 39449139082 for ; Tue, 28 Nov 2017 23:17:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6457AE0BC7; Tue, 28 Nov 2017 23:17:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3E2A9E0BC7 for ; Tue, 28 Nov 2017 23:17:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E28EF33BE19 for ; Tue, 28 Nov 2017 23:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A442BAAF3 for ; Tue, 28 Nov 2017 23:17:02 +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: <1511107530.a192caf88f527e09508e32baa623ef85549612ae.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-schedules.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: a192caf88f527e09508e32baa623ef85549612ae X-VCS-Branch: master Date: Tue, 28 Nov 2017 23:17:02 +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: 1f63e8b8-a6cb-4cae-afa2-0a030e6bf3c5 X-Archives-Hash: a069c3668b4f5887cbfd7f5e9b7a5f6b commit: a192caf88f527e09508e32baa623ef85549612ae Author: Doug Freed mtu edu> AuthorDate: Sun Nov 19 16:05:30 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Nov 19 16:05:30 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=a192caf8 rc-schedules: if given nothing to look for, stop This avoids trying to kill everything. X-Gentoo-Bug: 631958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=631958 src/rc/rc-schedules.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index d60c2822..8f36f073 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -307,6 +307,9 @@ int run_stop_schedule(const char *applet, const char *const *p; bool progressed = false; + if (!(pid > 0 || exec || uid || (argv && *argv))) + return 0; + if (exec) einfov("Will stop %s", exec); if (pid > 0)