From 21cab71e75e7dd0f7d91e28e310e8b59af304aa6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Wed, 24 Sep 2014 19:03:45 +0200
Subject: Fix the epoll poller
Setting the fd to -1 broke poller_remove_from_dispatch().
---
ponymap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'ponymap.c')
diff --git a/ponymap.c b/ponymap.c
index 5fc486a..edcb935 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -534,7 +534,7 @@ unit_abort (struct unit *u)
poller_timer_reset (&u->timeout_event);
// This way we avoid a syscall with epoll
- u->fd_event.fd = -1;
+ u->fd_event.closed = true;
poller_fd_reset (&u->fd_event);
u->transport_data = NULL;
--
cgit v1.2.3