From: Roy Marples Date: Sun, 2 Mar 2014 13:01:34 +0000 (+0000) Subject: As we do now listen to the udp socket directly, delete the fd from eloop when done. X-Git-Tag: v6.3.2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eb71ae8e108d3f3969f679259e434ea819d5e08;p=thirdparty%2Fdhcpcd.git As we do now listen to the udp socket directly, delete the fd from eloop when done. --- diff --git a/dhcp.c b/dhcp.c index 93bb9b2e..acbca2fa 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1344,7 +1344,7 @@ dhcp_close(struct interface *ifp) state->raw_fd = -1; } if (state->udp_fd != -1) { - /* we don't listen to events on the udp */ + eloop_event_delete(ifp->ctx->eloop, state->udp_fd); close(state->udp_fd); state->udp_fd = -1; }