]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Just check for an revent, the handler will deal with it correctly.
authorRoy Marples <roy@marples.name>
Fri, 6 Jun 2014 17:31:55 +0000 (17:31 +0000)
committerRoy Marples <roy@marples.name>
Fri, 6 Jun 2014 17:31:55 +0000 (17:31 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index 81a57b2f180536f21777e650eadec8596efb70ce..8841846e7c2a4a4372aea2971a64cc72bb473101 100644 (file)
--- a/eloop.c
+++ b/eloop.c
@@ -395,7 +395,7 @@ eloop_start(struct dhcpcd_ctx *dctx)
                /* Process any triggered events. */
                if (n > 0) {
                        TAILQ_FOREACH(e, &ctx->events, next) {
-                               if (e->pollfd->revents & (POLLIN | POLLHUP)) {
+                               if (e->pollfd->revents) {
                                        e->callback(e->arg);
                                        /* We need to break here as the
                                         * callback could destroy the next