]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: don't pass `events' arg to EPOLL_CTL_DEL
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:10 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:25 +0000 (05:26 +0000)
There's no point in passing a mask of interesting events
when removing an item from the epoll watch set.

lib/PublicInbox/DS.pm

index d07620a87215892a846ac0112ea6ad271bed5700..8fc49eee67e9c0b564f1d0800284a8eec05f52d0 100644 (file)
@@ -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: $!");
     }