mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Do not require that the signal number be specified
This commit is contained in:
parent
76097edc0e
commit
08804ceaf1
@ -199,7 +199,7 @@ int
|
|||||||
start_stop_daemon_main(int argc, char **argv)
|
start_stop_daemon_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
char *signame;
|
char *signame = NULL;
|
||||||
bb_applet_long_options = ssd_long_options;
|
bb_applet_long_options = ssd_long_options;
|
||||||
|
|
||||||
flags = bb_getopt_ulflags(argc, argv, "KSba:n:s:u:x:",
|
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);
|
start = (flags & 2);
|
||||||
fork_before_exec = (flags & 4);
|
fork_before_exec = (flags & 4);
|
||||||
|
|
||||||
|
if (signame) {
|
||||||
signal_nr = bb_xgetlarg(signame, 10, 0, NSIG);
|
signal_nr = bb_xgetlarg(signame, 10, 0, NSIG);
|
||||||
|
}
|
||||||
|
|
||||||
if (start == stop)
|
if (start == stop)
|
||||||
bb_error_msg_and_die ("need exactly one of -S or -K");
|
bb_error_msg_and_die ("need exactly one of -S or -K");
|
||||||
|
Loading…
Reference in New Issue
Block a user