about summary refs log tree commit homepage
path: root/lib/PublicInbox/DS.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-03-15 21:47:56 +0000
committerEric Wong <e@80x24.org>2023-03-16 19:07:17 +0000
commit9d2c11e54f3421fd95a0966ac114366808cfb65f (patch)
tree03b0c0c72f187a9430035a085c78edae897f940d /lib/PublicInbox/DS.pm
parent3bd3c206ee0301f45dcdc99238c9f90a072f45a0 (diff)
downloadpublic-inbox-9d2c11e54f3421fd95a0966ac114366808cfb65f.tar.gz
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)
Diffstat (limited to 'lib/PublicInbox/DS.pm')
-rw-r--r--lib/PublicInbox/DS.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm
index a08e01f5..b6eaf2d7 100644
--- a/lib/PublicInbox/DS.pm
+++ b/lib/PublicInbox/DS.pm
@@ -214,7 +214,6 @@ sub await_cb ($;@) {
 # 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;
@@ -224,7 +223,6 @@ sub reap_pids {
                         warn "W: reaped unknown PID=$pid: \$?=$?\n";
                 }
         }
-        sig_setmask($oldset);
 }
 
 # reentrant SIGCHLD handler (since reap_pids is not reentrant)