diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 08:51:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-07 22:56:57 +0000 |
commit | 41045a11867303e5949f557dd37061923c37c202 (patch) | |
tree | 41bf56097fa45567a119a485445fd796887f1522 /lib | |
parent | ff36e076103eef2713895fcb4b401f129ae4b6de (diff) | |
download | public-inbox-41045a11867303e5949f557dd37061923c37c202.tar.gz |
die() in a child zips up the stack into the parent, which is undesirable behavior. We're going to exit anyways, just warn and let exit(1) happen due to $@ being set.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/IPC.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm index b936c27a..8f6f4ded 100644 --- a/lib/PublicInbox/IPC.pm +++ b/lib/PublicInbox/IPC.pm @@ -129,7 +129,7 @@ sub ipc_worker_spawn { local %SIG = %SIG; ipc_worker_loop($self, $r_req, $w_res); }; - die "worker $ident PID:$$ died: $@\n" if $@; + warn "worker $ident PID:$$ died: $@\n" if $@; undef $end; # trigger exit } PublicInbox::DS::sig_setmask($sigset) unless $oldset; |