about summary refs log tree commit
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-29 10:34:19 +0000
committerEric Wong <e@yhbt.net>2020-06-30 03:05:26 +0000
commit38c87c5d556e218abe59d874f0ad7968d17a79b8 (patch)
treea6361240a9531adc236296d21095bc8975e9ab9d
parent901305dfe6837f5c1e9ae185f4cb536b92124049 (diff)
downloadpublic-inbox-38c87c5d556e218abe59d874f0ad7968d17a79b8.tar.gz
In case our git or spam checker subprocesses spawn
subprocesses of their own.  We'll also ensure signal
handlers are properly setup before unblocking them.
-rw-r--r--lib/PublicInbox/WatchMaildir.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 25b87e93..288f64d1 100644
--- a/lib/PublicInbox/WatchMaildir.pm
+++ b/lib/PublicInbox/WatchMaildir.pm
@@ -527,8 +527,8 @@ sub watch_atfork_child ($) {
         delete $self->{poll_pids};
         delete $self->{opendirs};
         PublicInbox::DS->Reset;
+        %SIG = (%SIG, %{$self->{sig}}, CHLD => 'DEFAULT');
         PublicInbox::Sigfd::sig_setmask($self->{oldset});
-        %SIG = (%SIG, %{$self->{sig}});
 }
 
 sub watch_atfork_parent ($) {