From: Roy Marples Date: Thu, 17 Jul 2008 08:27:17 +0000 (+0000) Subject: Close the link fd at exit. X-Git-Tag: v4.0.2~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce41d01be5131c90b5da1130bddbf32fa80108da;p=thirdparty%2Fdhcpcd.git Close the link fd at exit. --- diff --git a/client.c b/client.c index 240373cd..ce00f8be 100644 --- a/client.c +++ b/client.c @@ -1699,6 +1699,8 @@ dhcp_run(const struct options *options, int *pid_fd) eexit: if (iface) { do_socket(state, SOCKET_CLOSED); + if (iface->link_fd != -1) + close(iface->link_fd); free_routes(iface->routes); free(iface->clientid); free(iface->buffer);