When not daemonising, don't exit on timeout.

This commit is contained in:
Roy Marples 2014-11-24 11:03:28 +00:00
parent 3a71b44f07
commit 465083d9e0

View File

@ -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);
}