diff options
author | Eric Wong <e@80x24.org> | 2019-11-27 01:33:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-11-27 10:25:43 +0000 |
commit | d6674af04cb74a4efd513d938bed8bf7ab2838eb (patch) | |
tree | 98e1924639d6ee8be3cd0bb4d614332a0a1cbef4 /Makefile.PL | |
parent | 1e44ee6d429b853a7a87ae58e56241c55ab8c306 (diff) | |
download | public-inbox-d6674af04cb74a4efd513d938bed8bf7ab2838eb.tar.gz |
Our attempt at using a self-pipe in signal handlers was ineffective, since pure Perl code execution is deferred and Perl doesn't use an internal self-pipe/eventfd. In retrospect, I actually prefer the simplicity of Perl in this regard... We can use sigprocmask() from Perl, so we can introduce signalfd(2) and EVFILT_SIGNAL support on Linux and *BSD-based systems, respectively. These OS primitives allow us to avoid a race where Perl checks for signals right before epoll_wait() or kevent() puts the process to sleep. The (few) systems nowadays without signalfd(2) or IO::KQueue will now see wakeups every second to avoid missed signals.
Diffstat (limited to 'Makefile.PL')
0 files changed, 0 insertions, 0 deletions