+Thu Jul 11 22:26:30 CDT 2002 Adam Heath <doogie@debian.org>
+
+ * utils/start-stop-daemon.c: If in --test mode, and --stop is given,
+ increment n_killed, so that start-stop-daemon returns the proper exit
+ value. Thanks Thomas Morin <thomas.morin@enst-bretagne.fr>.
+
Thu Jul 11 22:19:12 CDT 2002 Adam Heath <doogie@debian.org>
* utils/start-stop-daemon.c: Fix test inversion in start-stop-daemon,
* Fix test inversion in start-stop-daemon, when checking the pid given in
a pid file. Thanks Thomas Morin <thomas.morin@enst-bretagne.fr>.
Closes: #152270.
+ * If in --test mode, and --stop is given, increment n_killed, so that
+ start-stop-daemon returns the proper exit value. Thanks Thomas Morin
+ <thomas.morin@enst-bretagne.fr>. Closes: #151992.
-- Wichert Akkerman <wakkerma@debian.org> UNRELEASED
clear(&killed);
for (p = found; p; p = p->next) {
- if (testmode)
+ if (testmode) {
printf("Would send signal %d to %d.\n",
signal_nr, p->pid);
- else if (kill(p->pid, signal_nr) == 0) {
+ (*n_killed)++;
+ } else if (kill(p->pid, signal_nr) == 0) {
push(&killed, p->pid);
(*n_killed)++;
} else {