diff options
author | Adam Heath <doogie@debian.org> | 2002-07-12 03:26:41 +0000 |
---|---|---|
committer | Adam Heath <doogie@debian.org> | 2002-07-12 03:26:41 +0000 |
commit | 45790ae719dacff8563734e357e4a2e116a0fadc (patch) | |
tree | f589af138dfe2794a9ad37363890b52c55c7288d /utils | |
parent | acffef8d09e9493340eb4fd18e78a14acb9e3056 (diff) | |
download | dpkg-45790ae719dacff8563734e357e4a2e116a0fadc.tar.gz |
Fix test inversion in start-stop-daemon, when checking the pid given in a
pid file. Thanks Thomas Morin <thomas.morin@enst-bretagne.fr>.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/start-stop-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c index b82953498..654ab76a4 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); } |