aboutsummaryrefslogtreecommitdiff
path: root/ponymap.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-24 19:03:45 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-24 19:03:45 +0200
commit21cab71e75e7dd0f7d91e28e310e8b59af304aa6 (patch)
treea3f2e4f19eba85ad2f6c4227505ef6109c71f7e7 /ponymap.c
parent89edba14f0dfb74f0694a20724405743ece00017 (diff)
downloadponymap-21cab71e75e7dd0f7d91e28e310e8b59af304aa6.tar.gz
ponymap-21cab71e75e7dd0f7d91e28e310e8b59af304aa6.tar.xz
ponymap-21cab71e75e7dd0f7d91e28e310e8b59af304aa6.zip
Fix the epoll poller
Setting the fd to -1 broke poller_remove_from_dispatch().
Diffstat (limited to 'ponymap.c')
-rw-r--r--ponymap.c2
1 files changed, 1 insertions, 1 deletions
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;