We need to ensure there isn't a window where we lose $SIG{CHLD}
handling. This is the second part in getting t/imapd.t to pass
the reload-after-setting-imap.pollInterval test
That said, I'm not entirely happy with the way -watch jumps
in and out of the event loop. It's historical baggage from
the pre-event_loop days.
CHLD => \&PublicInbox::DS::enqueue_reap,
};
$sig->{QUIT} = $sig->{TERM} = $sig->{INT} = $quit;
+ local @SIG{keys %$sig} = values(%$sig); # for non-signalfd/kqueue
# --no-scan is only intended for testing atm, undocumented.
PublicInbox::DS::requeue($scan) if $do_scan;