From: Roy Marples Date: Fri, 6 Jun 2014 17:31:55 +0000 (+0000) Subject: Just check for an revent, the handler will deal with it correctly. X-Git-Tag: v6.4.0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c1a9c7649f5b86440c2bd9cb6ccdc4c868bb9e9;p=thirdparty%2Fdhcpcd.git Just check for an revent, the handler will deal with it correctly. --- diff --git a/eloop.c b/eloop.c index 81a57b2f..8841846e 100644 --- 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