Silence the right get_pid() call

This commit is contained in:
Christian Ruppert 2012-09-12 21:35:55 +02:00
parent a06072b395
commit 3cd293c515

View File

@ -1081,7 +1081,7 @@ start_stop_daemon(int argc, char **argv)
} }
if (pidfile) if (pidfile)
pid = get_pid(pidfile, false); pid = get_pid(pidfile, true);
else else
pid = 0; pid = 0;
@ -1354,7 +1354,7 @@ start_stop_daemon(int argc, char **argv)
alive = true; alive = true;
} else { } else {
if (pidfile) { if (pidfile) {
pid = get_pid(pidfile, true); pid = get_pid(pidfile, false);
if (pid == -1) { if (pid == -1) {
eerrorx("%s: did not " eerrorx("%s: did not "
"create a valid" "create a valid"