]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
As we do now listen to the udp socket directly, delete the fd from eloop when done.
authorRoy Marples <roy@marples.name>
Sun, 2 Mar 2014 13:01:34 +0000 (13:01 +0000)
committerRoy Marples <roy@marples.name>
Sun, 2 Mar 2014 13:01:34 +0000 (13:01 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 93bb9b2ef59c0678918fa122666ffbdc1a95207e..acbca2fafc45c5fc9ca91c34d3d5f76aa407f81b 100644 (file)
--- 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;
        }