From 3cd293c515ddf44172ece36e785209084a11d3fc Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Wed, 12 Sep 2012 21:35:55 +0200 Subject: Silence the right get_pid() call --- src/rc/start-stop-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 7c24eadd..bd20e346 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" -- cgit v1.2.3