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 B3EC41396D3 for ; Mon, 18 Sep 2017 18:07:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A8071FC0BA; Mon, 18 Sep 2017 18:07:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 EEC731FC0BA for ; Mon, 18 Sep 2017 18:07:40 +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 1C8B033FE7D for ; Mon, 18 Sep 2017 18:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D9C3F9087 for ; Mon, 18 Sep 2017 18:07:38 +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: <1505676005.4ab60ff10935122277bbaed437f82a765279cd19.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: 4ab60ff10935122277bbaed437f82a765279cd19 X-VCS-Branch: master Date: Mon, 18 Sep 2017 18:07:38 +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: 684dd5bb-6c56-4918-b852-0d69e3595bd5 X-Archives-Hash: dac4bcea7c6d8204b252c1d967ea8e11 commit: 4ab60ff10935122277bbaed437f82a765279cd19 Author: William Hubbs gmail com> AuthorDate: Sun Sep 17 19:20:05 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Sep 17 19:20:05 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4ab60ff1 rc-schedules.c: pass the correct pid to rc_find_pids This is for #163. src/rc/rc-schedules.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index 13f615ee..164581d6 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -261,10 +261,10 @@ int do_stop(const char *applet, const char *exec, const char *const *argv, bool killed; int nkilled = 0; - if (pid) + if (pid > 0) pids = rc_find_pids(NULL, NULL, 0, pid); else - pids = rc_find_pids(exec, argv, uid, pid); + pids = rc_find_pids(exec, argv, uid, 0); if (!pids) return 0;