From: Rob Landley Date: Mon, 28 Aug 2006 20:30:27 +0000 (-0000) Subject: Bugfix from Jason Schoon: send the right signal with -s. X-Git-Tag: 1_4_0~784 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=84790636675409bc9450d11cb06173d6594113a5;p=oweals%2Fbusybox.git Bugfix from Jason Schoon: send the right signal with -s. --- diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 6f8fb2dc8..9c9b5fe77 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)