diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-23 02:26:45 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-28 18:52:49 +0000 |
commit | 9ff1f777cda255d8c9b9224b69241aad7c297db5 (patch) | |
tree | 9e6bc225d2e4e2e4d3f84109340f8beadafcba2c /lib/PublicInbox/Import.pm | |
parent | ebc3f825c1eb95399c575fff816180a6e4fffeb6 (diff) | |
download | public-inbox-9ff1f777cda255d8c9b9224b69241aad7c297db5.tar.gz |
Leaking these pipes to child processes wasn't harmful, but made determining relationships and dataflow between processes more confusing.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index b650e4ef..ac46c0cb 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -372,6 +372,13 @@ sub done { close $lockfh or die "close lock failed: $!"; } +sub atfork_child { + my ($self) = @_; + foreach my $f (qw(in out)) { + close $self->{$f} or die "failed to close import[$f]: $!\n"; + } +} + 1; __END__ =pod |