From 17a3d433a1e8617a1e957da8efe11875efaa0f62 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 6 Apr 2020 20:23:01 +0000 Subject: portability: constants for NetBSD NetBSD implements O_CLOEXEC, so let us use it to avoid inadvertant FD sharing. It also has the same value for SIGWINCH as Linux and the other BSDs we support. --- lib/PublicInbox/Sigfd.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/Sigfd.pm') diff --git a/lib/PublicInbox/Sigfd.pm b/lib/PublicInbox/Sigfd.pm index 2d27f6a1..f500902e 100644 --- a/lib/PublicInbox/Sigfd.pm +++ b/lib/PublicInbox/Sigfd.pm @@ -15,6 +15,7 @@ sub new { my $self = fields::new($class); my %signo = map {; my $cb = $sig->{$_}; + # SIGWINCH is 28 on FreeBSD, NetBSD, OpenBSD my $num = ($_ eq 'WINCH' && $^O =~ /linux|bsd/i) ? 28 : do { my $m = "SIG$_"; POSIX->$m; -- cgit v1.2.3-24-ge0c7