mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 10:35:03 +08:00
When not daemonising, don't exit on timeout.
This commit is contained in:
parent
3a71b44f07
commit
465083d9e0
2
dhcpcd.c
2
dhcpcd.c
@ -1722,7 +1722,7 @@ main(int argc, char **argv)
|
||||
syslog(LOG_WARNING, "no interfaces have a carrier");
|
||||
if (dhcpcd_daemonise(&ctx))
|
||||
goto exit_success;
|
||||
} else if (t > 0) {
|
||||
} else if (t > 0 && ctx.options & DHCPCD_DAEMONISE) {
|
||||
eloop_timeout_add_sec(ctx.eloop, t,
|
||||
handle_exit_timeout, &ctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user