From b6e2d71cd342a55e942915a082ca3fd15812e48d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Jun 2016 21:56:31 +0000 Subject: daemon: reset unused signal handlers to default in child 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(+) (limited to 'lib/PublicInbox/Daemon.pm') diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index b64ec874..b76b9ffb 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) -- cgit v1.2.3-24-ge0c7