changeset 1392:13f8f673bc05 draft

Fix timeout of 0 disabling the timeout.
author Roy Marples <roy@marples.name>
date Tue, 11 Aug 2009 20:12:46 +0000
parents 29f78d51a643
children f8704ad1ef0c
files dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Tue Aug 11 20:08:02 2009 +0000
+++ b/dhcpcd.c	Tue Aug 11 20:12:46 2009 +0000
@@ -1752,7 +1752,7 @@
 	    (ifc == 0 && options & DHCPCD_LINK && options & DHCPCD_DAEMONISE))
 	{
 		daemonise();
-	} else if (options & DHCPCD_DAEMONISE) {
+	} else if (options & DHCPCD_DAEMONISE && ifo->timeout > 0) {
 		oi = ifo->timeout;
 		if (ifo->options & DHCPCD_IPV4LL)
 			oi += 10;