Mercurial > hg > dhcpcd
changeset 2530:959391cdb761 draft
Just check for an revent, the handler will deal with it correctly.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 06 Jun 2014 17:31:55 +0000 |
| parents | eddad85c5804 |
| children | 7458be0ef8c9 |
| files | eloop.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/eloop.c Thu Jun 05 20:23:19 2014 +0000 +++ b/eloop.c Fri Jun 06 17:31:55 2014 +0000 @@ -395,7 +395,7 @@ /* 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
