[BusyBox-cvs] busybox/debianutils start_stop_daemon.c,1.9,1.10
Erik Andersen
andersen at busybox.net
Wed Jul 30 08:29:59 UTC 2003
Update of /var/cvs/busybox/debianutils
In directory winder:/tmp/cvs-serv21553/debianutils
Modified Files:
start_stop_daemon.c
Log Message:
Do not require that the signal number be specified
Index: start_stop_daemon.c
===================================================================
RCS file: /var/cvs/busybox/debianutils/start_stop_daemon.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- start_stop_daemon.c 26 Jul 2003 09:10:35 -0000 1.9
+++ start_stop_daemon.c 30 Jul 2003 08:29:56 -0000 1.10
@@ -199,7 +199,7 @@
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 = (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");
More information about the busybox-cvs
mailing list