]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Put POLLHUP back
authorRoy Marples <roy@marples.name>
Sat, 3 May 2014 00:08:12 +0000 (00:08 +0000)
committerRoy Marples <roy@marples.name>
Sat, 3 May 2014 00:08:12 +0000 (00:08 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index 141eb29c57a22e69bccaab289b3da48704e30613..81a57b2f180536f21777e650eadec8596efb70ce 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)) {
+                               if (e->pollfd->revents & (POLLIN | POLLHUP)) {
                                        e->callback(e->arg);
                                        /* We need to break here as the
                                         * callback could destroy the next