From ee8cadb3a71ab4c951642a96ba123688244de720 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Sep 2020 03:42:30 +0000 Subject: sigfd: fix typos and scoping on systems w/o epoll+kqueue Unfortunately, I'm not sure how easy catching these at compile-time, is. Prototypes do not seem to check these at compile time when crossing packages (not even with exported subroutines). --- script/public-inbox-watch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-watch b/script/public-inbox-watch index 1d164aa3..55183ef2 100755 --- a/script/public-inbox-watch +++ b/script/public-inbox-watch @@ -60,7 +60,7 @@ if ($watch) { my $sigfd = PublicInbox::Sigfd->new($sig, $SFD_NONBLOCK); local %SIG = (%SIG, %$sig) if !$sigfd; if (!$sigfd) { - PublicInbox::Sigfd::set_sigmask($oldset); + PublicInbox::Sigfd::sig_setmask($oldset); PublicInbox::DS->SetLoopTimeout(1000); } $watch->watch($sig, $oldset) while ($watch); -- cgit v1.2.3-24-ge0c7