From: Roy Marples Date: Fri, 7 Feb 2014 11:06:17 +0000 (+0000) Subject: Set dev fd to -1 when stopped. X-Git-Tag: v6.3.0~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fae9461b6e18fcc140625b16c719ab75a649ea64;p=thirdparty%2Fdhcpcd.git Set dev fd to -1 when stopped. --- diff --git a/dev.c b/dev.c index 4b2a9648..fe5eb18e 100644 --- a/dev.c +++ b/dev.c @@ -72,6 +72,7 @@ dev_stop(int stop) dev->stop(); free(dev); dev = NULL; + fd = -1; } if (handle) { dlclose(handle);