From 45790ae719dacff8563734e357e4a2e116a0fadc Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Fri, 12 Jul 2002 03:26:41 +0000 Subject: [PATCH] Fix test inversion in start-stop-daemon, when checking the pid given in a pid file. Thanks Thomas Morin . --- ChangeLog | 6 ++++++ debian/changelog | 3 +++ utils/start-stop-daemon.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index de939526..b1230ca7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 11 22:19:12 CDT 2002 Adam Heath + + * utils/start-stop-daemon.c: Fix test inversion in start-stop-daemon, + when checking the pid given in a pid file. Thanks Thomas Morin + . + Sun Jul 7 14:54:44 CDT 2002 Adam Heath * debian/rules: Fix install location of /usr/lib/dpkg/methods. diff --git a/debian/changelog b/debian/changelog index 809e787e..d31340e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ dpkg (1.10.3) unstable; urgency=low * Move dselect.cfg to dselect package. Closes: Bug#152132 * Install methods into /usr/lib/dpkg/methods, not /usr/lib/dpkg. Closes: #152161. + * Fix test inversion in start-stop-daemon, when checking the pid given in + a pid file. Thanks Thomas Morin . + Closes: #152270. -- Wichert Akkerman UNRELEASED diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index b8295349..654ab76a 100644 --- a/utils/start-stop-daemon.c +++ b/utils/start-stop-daemon.c @@ -686,7 +686,7 @@ check(pid_t pid) return; if (cmdname && !pid_is_cmd(pid, cmdname)) return; - if (start && pid_is_running(pid)) + if (start && !pid_is_running(pid)) return; push(&found, pid); } -- 2.39.5