changeset 1394:a1a8163420ce draft

Fix timeout of 0 disabling the timeout.
author Roy Marples <roy@marples.name>
date Tue, 11 Aug 2009 20:13:58 +0000
parents eacf3229a9c8
children 4b64d3df234b
files dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dhcpcd.c	Tue Aug 11 20:13:41 2009 +0000
+++ b/dhcpcd.c	Tue Aug 11 20:13:58 2009 +0000
@@ -1753,7 +1753,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;