]> Sergey Matveev's repositories - public-inbox.git/commit
t/cmd_ipc: workaround signal handling raciness
authorEric Wong <e@80x24.org>
Thu, 25 Mar 2021 04:20:25 +0000 (06:20 +0200)
committerEric Wong <e@80x24.org>
Thu, 25 Mar 2021 17:59:04 +0000 (17:59 +0000)
commit67379b592b29883618a380e81a3e2553702010f1
tree0127a7baaffdb15feba6d67db44b752f0620eb66
parentc1b912dea25f48958434f1e85337029b0959fc83
t/cmd_ipc: workaround signal handling raciness

Perl can't check for interrupts when inside a blocking syscall,
as there's no self-pipe mechanism inside Perl itself.  So fork
a child and have it repeated kill(2) instead of relying on alarm(3).
t/cmd_ipc.t