aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/passt.c b/passt.c
index 6b6a317..12b10dc 100644
--- a/passt.c
+++ b/passt.c
@@ -876,8 +876,10 @@ loop:
if (events[i].events & EPOLLRDHUP ||
events[i].events & EPOLLHUP ||
events[i].events & EPOLLERR ||
- tap_handler(&c, &now))
+ tap_handler(&c, &now)) {
+ close(c.fd_unix);
goto listen;
+ }
} else {
sock_handler(&c, events[i].data.fd, events[i].events,
&now);