From b4aae3e011e24a9aacbd6d84c0e0aa610144bb76 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 24 Jun 2019 02:52:10 +0000 Subject: ds: don't pass `events' arg to EPOLL_CTL_DEL There's no point in passing a mask of interesting events when removing an item from the epoll watch set. --- lib/PublicInbox/DS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index d07620a8..8fc49eee 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -458,7 +458,7 @@ sub close { # notifications about it if ($HaveEpoll) { my $fd = fileno($sock); - epoll_ctl($Epoll, EPOLL_CTL_DEL, $fd, $self->{event_watch}) and + epoll_ctl($Epoll, EPOLL_CTL_DEL, $fd, 0) and confess("EPOLL_CTL_DEL: $!"); } -- cgit v1.2.3-24-ge0c7