diff options
author | Eric Wong <e@yhbt.net> | 2020-06-29 10:34:19 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-30 03:05:26 +0000 |
commit | 38c87c5d556e218abe59d874f0ad7968d17a79b8 (patch) | |
tree | a6361240a9531adc236296d21095bc8975e9ab9d | |
parent | 901305dfe6837f5c1e9ae185f4cb536b92124049 (diff) | |
download | public-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.pm | 2 |
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 ($) { |