mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
timeout: fix parsing of -t NUM on MMU
This commit is contained in:
parent
424f79b48f
commit
3fd1046300
@ -48,7 +48,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
/* -t SECONDS; -p PARENT_PID */
|
/* -t SECONDS; -p PARENT_PID */
|
||||||
opt_complementary = "t+" USE_FOR_NOMMU(":p+");
|
opt_complementary = "t+" USE_FOR_NOMMU(":p+");
|
||||||
/* '+': stop at first non-option */
|
/* '+': stop at first non-option */
|
||||||
getopt32(argv, "+s:t" USE_FOR_NOMMU(":p:"), &opt_s, &timeout, &parent);
|
getopt32(argv, "+s:t:" USE_FOR_NOMMU("p:"), &opt_s, &timeout, &parent);
|
||||||
/*argv += optind; - no, wait for bb_daemonize_or_rexec! */
|
/*argv += optind; - no, wait for bb_daemonize_or_rexec! */
|
||||||
signo = get_signum(opt_s);
|
signo = get_signum(opt_s);
|
||||||
if (signo < 0)
|
if (signo < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user