From: Roy Marples Date: Fri, 7 Feb 2014 09:33:32 +0000 (+0000) Subject: Exit correctly if no interfaces have a carrier. X-Git-Tag: v6.3.0~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f2c54e0084035694ff031258f314c559fcd2762;p=thirdparty%2Fdhcpcd.git Exit correctly if no interfaces have a carrier. --- diff --git a/dhcpcd.c b/dhcpcd.c index cf2e4767..8502a722 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -1410,7 +1410,8 @@ main(int argc, char **argv) !(options & DHCPCD_WAITIP)) { syslog(LOG_WARNING, "no interfaces have a carrier"); - daemonise(); + if (daemonise()) + goto exit_success; } else if (i > 0) { if (options & DHCPCD_IPV4LL) options |= DHCPCD_TIMEOUT_IPV4LL;