diff options
author | Eric Wong <e@yhbt.net> | 2020-08-07 10:15:04 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-07 23:44:55 +0000 |
commit | 62068fafcb40c2f91d31cf3fa5e775ecc52a6ba8 (patch) | |
tree | 64416de947b897e8ce15c4c91423bb8639e21669 /lib/PublicInbox/Daemon.pm | |
parent | 9968a955fd7881155bd4938116b98d2ffba192e6 (diff) | |
download | public-inbox-62068fafcb40c2f91d31cf3fa5e775ecc52a6ba8.tar.gz |
Thanks to the GCC compile farm project, we can wire up syscalls for sparc64 and set system-specific SFD_* constants properly. I've FINALLY figured out how to use POSIX::SigSet to generate a usable buffer for the syscall perlfunc. This is required for endian-neutral behavior and relevant to sparc64, at least. There's no need for signalfd-related stuff to be constants, either. signalfd initialization is never a hot path and a stub subroutine for constants uses several KB of memory in the interpreter. We'll drop the needless SEEK_CUR import while we're importing O_NONBLOCK, too.
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r-- | lib/PublicInbox/Daemon.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index ab0c2226..45475183 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -15,7 +15,7 @@ use Cwd qw/abs_path/; STDOUT->autoflush(1); STDERR->autoflush(1); use PublicInbox::DS qw(now); -use PublicInbox::Syscall qw(SFD_NONBLOCK); +use PublicInbox::Syscall qw($SFD_NONBLOCK); require PublicInbox::Listener; require PublicInbox::ParentPipe; use PublicInbox::Sigfd; @@ -622,7 +622,7 @@ sub daemon_loop ($$$$) { # this calls epoll_create: PublicInbox::Listener->new($_, $tls_cb || $post_accept) } @listeners; - my $sigfd = PublicInbox::Sigfd->new($sig, SFD_NONBLOCK); + my $sigfd = PublicInbox::Sigfd->new($sig, $SFD_NONBLOCK); local %SIG = (%SIG, %$sig) if !$sigfd; if (!$sigfd) { # wake up every second to accept signals if we don't |