From: Roy Marples Date: Fri, 17 May 2013 23:21:56 +0000 (+0000) Subject: Fix logic X-Git-Tag: v5.99.7~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fb7f6dc8bcc8b8091bce371ec2aebea23ffda9a;p=thirdparty%2Fdhcpcd.git Fix logic --- diff --git a/eloop.c b/eloop.c index 506ad77e..7f7364cd 100644 --- a/eloop.c +++ b/eloop.c @@ -372,7 +372,7 @@ eloop_start(const sigset_t *sigmask) /* Process any triggered events. */ if (n > 0) { TAILQ_FOREACH(e, &events, next) { - if (e->pollfd->revents & (POLLIN || POLLHUP)) { + if (e->pollfd->revents & (POLLIN | POLLHUP)) { e->callback(e->arg); /* We need to break here as the * callback could destroy the next