lib/PublicInbox/DS.pm | 2 +- diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index d07620a87215892a846ac0112ea6ad271bed5700..8fc49eee67e9c0b564f1d0800284a8eec05f52d0 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -458,7 +458,7 @@ # if we're using epoll, we have to remove this from our epoll fd so we stop getting # 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: $!"); }