aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2003-07-30 08:29:56 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2003-07-30 08:29:56 +0000
commit08804ceaf106cc1aec5d23b529aba31939354fcd (patch)
tree8eb40002e08ac1799a6b21a4f06466735e22cc3b /debianutils
parent76097edc0ebdb1f8cb68e0f362ec5af42140345e (diff)
downloadbusybox-08804ceaf106cc1aec5d23b529aba31939354fcd.tar.gz
busybox-08804ceaf106cc1aec5d23b529aba31939354fcd.tar.bz2
Do not require that the signal number be specified
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/start_stop_daemon.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 482078e6e..c31bba6dd 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -199,7 +199,7 @@ int
start_stop_daemon_main(int argc, char **argv)
{
int flags;
- char *signame;
+ char *signame = NULL;
bb_applet_long_options = ssd_long_options;
flags = bb_getopt_ulflags(argc, argv, "KSba:n:s:u:x:",
@@ -210,7 +210,9 @@ start_stop_daemon_main(int argc, char **argv)
start = (flags & 2);
fork_before_exec = (flags & 4);
- signal_nr = bb_xgetlarg(signame, 10, 0, NSIG);
+ if (signame) {
+ signal_nr = bb_xgetlarg(signame, 10, 0, NSIG);
+ }
if (start == stop)
bb_error_msg_and_die ("need exactly one of -S or -K");