From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 965601FEAA for ; Sat, 11 Jun 2016 21:58:14 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] daemon: reset unused signal handlers to default in child Date: Sat, 11 Jun 2016 21:58:14 +0000 Message-Id: <20160611215814.5982-1-e@80x24.org> List-Id: They're effectively noops anyways, and we don't want to be holding a reference to the read end of the parent pipe. --- lib/PublicInbox/Daemon.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index b64ec87..b76b9ff 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -448,6 +448,7 @@ sub daemon_loop ($$) { $SIG{QUIT} = $SIG{INT} = $SIG{TERM} = *worker_quit; $SIG{USR1} = *reopen_logs; $SIG{HUP} = $refresh; + $SIG{$_} = 'DEFAULT' for qw(CHLD USR2 TTIN TTOU WINCH); # this calls epoll_create: @listeners = map { PublicInbox::Listener->new($_, $post_accept)