Bugfix from Jason Schoon: send the right signal with -s.

This commit is contained in:
Rob Landley 2006-08-28 20:30:27 +00:00
parent 028ba280be
commit 8479063667

View File

@ -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)