diff options
author | Eric Wong <e@yhbt.net> | 2020-04-06 20:23:01 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-07 19:37:32 +0000 |
commit | 17a3d433a1e8617a1e957da8efe11875efaa0f62 (patch) | |
tree | 7bdc99136fe0d94d5e52daca80d3e92c31a3704c /lib/PublicInbox/Sigfd.pm | |
parent | 1f1295cee4aedb8650e8dcde73fbf4d349f80917 (diff) | |
download | public-inbox-17a3d433a1e8617a1e957da8efe11875efaa0f62.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/Sigfd.pm')
-rw-r--r-- | lib/PublicInbox/Sigfd.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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; |