]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ParentPipe.pm
treewide: run update-copyrights from gnulib for 2019
[public-inbox.git] / lib / PublicInbox / ParentPipe.pm
index 6ef51c1adbd536527abe71598b899d9783d06220..f62f011bbe3abf53b98a3be33c6b64d8033a3183 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # only for PublicInbox::Daemon, allows worker processes to be
@@ -19,6 +19,9 @@ sub new ($$$) {
 }
 
 # master process died, time to call worker_quit ourselves
-sub event_step { $_[0]->{cb}->($_[0]) }
+sub event_step {
+       $_[0]->close; # PublicInbox::DS::close
+       $_[0]->{cb}->();
+}
 
 1;