Blocking signals when reaping was done when the lei pager was
spawned by the daemon in
b90e8d6e02. Shortly afterwards in
7b79c918a5, the client script took over spawning of the pager
and made
b90e8d6e02 redundant.
cf.
b90e8d6e02 (ds: block signals when reaping, 2021-01-10)
7b79c918a5 (lei: run pager in client script, 2021-01-10)
# that to remain the case.
sub reap_pids {
$reap_armed = undef;
- my $oldset = block_signals();
while (1) {
my $pid = waitpid(-1, WNOHANG) // last;
last if $pid <= 0;
warn "W: reaped unknown PID=$pid: \$?=$?\n";
}
}
- sig_setmask($oldset);
}
# reentrant SIGCHLD handler (since reap_pids is not reentrant)