From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 870D7138010 for ; Wed, 12 Sep 2012 19:36:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E79CBE01C9; Wed, 12 Sep 2012 19:36:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9EB84E01C9 for ; Wed, 12 Sep 2012 19:36:03 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ADC9233C4CC for ; Wed, 12 Sep 2012 19:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6A71BE543F for ; Wed, 12 Sep 2012 19:36:01 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <1347478555.3cd293c515ddf44172ece36e785209084a11d3fc.idl0r@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/start-stop-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: 3cd293c515ddf44172ece36e785209084a11d3fc X-VCS-Branch: master Date: Wed, 12 Sep 2012 19:36:01 +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: 7626d5af-dcbe-4c5e-a599-2d1320fd5930 X-Archives-Hash: 8c5656d78ba74a7cfd097a36365491c6 commit: 3cd293c515ddf44172ece36e785209084a11d3fc Author: Christian Ruppert gentoo org> AuthorDate: Wed Sep 12 19:35:55 2012 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Wed Sep 12 19:35:55 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=3cd293c5 Silence the right get_pid() call --- src/rc/start-stop-daemon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 7c24ead..bd20e34 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -1081,7 +1081,7 @@ start_stop_daemon(int argc, char **argv) } if (pidfile) - pid = get_pid(pidfile, false); + pid = get_pid(pidfile, true); else pid = 0; @@ -1354,7 +1354,7 @@ start_stop_daemon(int argc, char **argv) alive = true; } else { if (pidfile) { - pid = get_pid(pidfile, true); + pid = get_pid(pidfile, false); if (pid == -1) { eerrorx("%s: did not " "create a valid"