From: Roy Marples Date: Sat, 3 May 2014 00:08:12 +0000 (+0000) Subject: Put POLLHUP back X-Git-Tag: v6.4.0~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40c4e6986c45242296c85426c873ebff6691a253;p=thirdparty%2Fdhcpcd.git Put POLLHUP back --- diff --git a/eloop.c b/eloop.c index 141eb29c..81a57b2f 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)) { + if (e->pollfd->revents & (POLLIN | POLLHUP)) { e->callback(e->arg); /* We need to break here as the * callback could destroy the next