changeset 2464:5d271cf5115b draft

Put POLLHUP back
author Roy Marples <roy@marples.name>
date Sat, 03 May 2014 00:08:12 +0000
parents 187ad3d6020b
children 67f5d58621f9
files eloop.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/eloop.c	Sat May 03 00:02:14 2014 +0000
+++ b/eloop.c	Sat May 03 00:08:12 2014 +0000
@@ -395,7 +395,7 @@
 		/* 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