diff options
author | Eric Wong <e@80x24.org> | 2021-02-07 08:51:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-07 22:56:55 +0000 |
commit | 3894c29d99646fcd315ca6794b65e32547fcbae2 (patch) | |
tree | d4ac121975bfd3f72fe922cac605342ed8dc5efe /lib/PublicInbox/OnDestroy.pm | |
parent | 5244475c94d9f80b0a76b6bfa9185bdff5a8a0d8 (diff) | |
download | public-inbox-3894c29d99646fcd315ca6794b65e32547fcbae2.tar.gz |
This also updates lei_xsearch to follow the same pattern for stopping curl(1) and tail(1) processes it spawns.
Diffstat (limited to 'lib/PublicInbox/OnDestroy.pm')
-rw-r--r-- | lib/PublicInbox/OnDestroy.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/OnDestroy.pm b/lib/PublicInbox/OnDestroy.pm index 0ae4c4c9..615bc450 100644 --- a/lib/PublicInbox/OnDestroy.pm +++ b/lib/PublicInbox/OnDestroy.pm @@ -10,7 +10,7 @@ sub new { sub DESTROY { my ($cb, @args) = @{$_[0]}; - if (!ref($cb)) { + if (!ref($cb) && $cb) { my $pid = $cb; return if $pid != $$; $cb = shift @args; |