Debian Bug report logs -
#15017
dpkg: start-stop-daemon: wrong return code
Reported by: Joey Hess <joey@kitenet.net>
Date: Wed, 19 Nov 1997 01:03:02 UTC
Severity: normal
Done: Anthony Towns <ajt@master.debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
:
Bug#15017
; Package dpkg
.
(full text, mbox, link).
Acknowledgement sent to Joey Hess <joey@kitenet.net>
:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dpkg
Version: 1.4.0.19
With --stop , start-stop-daemon also checks for the exis
tence of a specified process. If such a process exists,
start-stop-daemon sends it the signal specified by --sig
nal , and exits with error status 0. If such a process
does not exist, start-stop-daemon exits with error status
1 (0 if --oknodo is specified).
joey@kite:/tmp>ps 6440
PID TT STAT TIME COMMAND
6440 p8 S 0:00 -zsh
joey@kite:/tmp>echo 6440 >pidfile
joey@kite:/tmp>start-stop-daemon --stop --signal 0 --pidfile pidfile --verbose
Stopped process in pidfile `pidfile' (pid 6440).
joey@kite:/tmp>echo $?
0
joey@kite:/tmp>ps 10000
PID TT STAT TIME COMMAND
No processes available.
joey@kite:/tmp>echo 10000 >pidfile
joey@kite:/tmp>start-stop-daemon --stop --signal 0 --pidfile pidfile --verbose
start-stop-daemon: warning: failed to kill 10000: No such process
joey@kite:/tmp>echo $?
0
joey@kite:/tmp>start-stop-daemon --stop --signal 0 --pidfile pidfile --verbose --oknodo
start-stop-daemon: warning: failed to kill 10000: No such process
joey@kite:/tmp>echo $?
0
So it always returns 0, even though the man page says it should return 1 in
the second test I show above.
Now:
joey@kite:/tmp>start-stop-daemon --stop --signal 0 --pidfile pidfile --verbose --name zsh
No zsh found; none killed.
joey@kite:/tmp>echo $?
1
No if you don't specify a name, the man page is incorrect as to what
start-stop-daemon will do.
-- System Information
Debian Release: 1.3
Kernel Version: Linux kite 2.1.65 #1 Tue Nov 18 15:11:19 EST 1997 i586 unknown
Versions of the packages dpkg depends on:
libc6 Version: 2.0.5c-0.1
libg++272 Version: 2.7.2.8-0.1
ncurses3.4 Version: 1.9.9g-5
Bug reassigned from package `dpkg' to `dpkg-iwj'.
Request was from Ben Collins <bcollins@debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
:
Bug#15017
; Package dpkg-iwj
.
(full text, mbox, link).
Acknowledgement sent to Ben Collins <bcollins@debian.org>
:
Extra info received and forwarded to list. Copy sent to Ian Jackson <dpkg-maint@chiark.greenend.org.uk>
.
(full text, mbox, link).
Message #12 received at 15017@bugs.debian.org (full text, mbox, reply):
# These bugs are being reassigned to dpkg-iwj. What this means is that
# they have been fixed in the primary dpkg contained in the potato
# archive, but have not been merged upstream. Please take the time to
# assure that your bug was actually fixed, and reassign it back to dpkg if
# it was not.
#
# Thanks,
# Ben
reassign 42239 dpkg-iwj
reassign 1921 dpkg-iwj
reassign 26431 dpkg-iwj
reassign 4801 dpkg-iwj
reassign 32637 dpkg-iwj
reassign 5536 dpkg-iwj
reassign 13730 dpkg-iwj
reassign 26432 dpkg-iwj
reassign 24309 dpkg-iwj
reassign 45739 dpkg-iwj
reassign 33086 dpkg-iwj
reassign 7128 dpkg-iwj
reassign 14663 dpkg-iwj
reassign 15017 dpkg-iwj
reassign 13929 dpkg-iwj
reassign 34642 dpkg-iwj
reassign 31784 dpkg-iwj
reassign 24472 dpkg-iwj
reassign 46808 dpkg-iwj
reassign 19038 dpkg-iwj
reassign 22351 dpkg-iwj
reassign 22748 dpkg-iwj
reassign 25653 dpkg-iwj
reassign 31256 dpkg-iwj
reassign 32031 dpkg-iwj
reassign 39420 dpkg-iwj
reassign 35117 dpkg-iwj
reassign 33347 dpkg-iwj
reassign 37810 dpkg-iwj
# misc. cleanups
severity 33344 wishlist
merge 30126 33263
close 44654
stop
Bug reassigned from package `dpkg-iwj' to `dpkg'.
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug closed, ack sent to submitter - they'd better know why !
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Bug reassigned from package `dpkg' to `dpkg'.
Request was from Anthony Towns <ajt@master.debian.org>
to control@bugs.debian.org
.
(full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Apr 25 17:20:57 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.