Since Perl doesn't internally use a self-pipe for
sleep/select/poll/etc, wake up every 10ms to ensure
it can see the SIGCHLD; since neither signalfd nor EVFILT_SIGNAL
are always available.
Fixes: 761baa2a300e4268 ("spawn: unblock SIGCHLD in subprocess")
$? == 0 or die "child err: $>";
$SIG{CHLD} = sub { print "HI\n"; exit };
print "RDY $$\n";
- sleep while 1;
+ select(undef, undef, undef, 0.01) while 1;
}
EOF
my $oldset = PublicInbox::Sigfd::block_signals();