summaryrefslogtreecommitdiff
path: root/debianutils/start_stop_daemon.c
diff options
context:
space:
mode:
authorRob Landley2006-08-28 20:30:27 +0000
committerRob Landley2006-08-28 20:30:27 +0000
commit84790636675409bc9450d11cb06173d6594113a5 (patch)
tree55406ebc658f07a8b3bab6efca4e4e11223cf2ee /debianutils/start_stop_daemon.c
parent028ba280be75fc58d97a4cc48dc877d229dc04d3 (diff)
downloadbusybox-84790636675409bc9450d11cb06173d6594113a5.zip
busybox-84790636675409bc9450d11cb06173d6594113a5.tar.gz
Bugfix from Jason Schoon: send the right signal with -s.
Diffstat (limited to 'debianutils/start_stop_daemon.c')
-rw-r--r--debianutils/start_stop_daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 6f8fb2d..9c9b5fe 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -250,7 +250,8 @@ int start_stop_daemon_main(int argc, char **argv)
USE_FEATURE_START_STOP_DAEMON_FANCY(&& !(opt & SSD_OPT_VERBOSE));
if (signame) {
- signal_nr = bb_xgetlarg(signame, 10, 0, NSIG);
+ signal_nr = get_signum(signame);
+ if (signal_nr < 0) bb_show_usage();
}
if (!startas)