mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-28 04:25:19 +08:00
Always respect the timeout.
This commit is contained in:
parent
66b86dec8c
commit
daf6e6a6b4
5
dhcpcd.c
5
dhcpcd.c
@ -1883,10 +1883,7 @@ main(int argc, char **argv)
|
||||
{
|
||||
syslog(LOG_WARNING, "no interfaces have a carrier");
|
||||
daemonise();
|
||||
} else if (ifo->timeout > 0 &&
|
||||
(options & DHCPCD_DAEMONISE ||
|
||||
options & DHCPCD_TEST))
|
||||
{
|
||||
} else if (ifo->timeout > 0) {
|
||||
if (options & DHCPCD_IPV4LL)
|
||||
options |= DHCPCD_TIMEOUT_IPV4LL;
|
||||
add_timeout_sec(ifo->timeout, handle_exit_timeout,
|
||||
|
Loading…
Reference in New Issue
Block a user