From 8651b0487c4f2353e79d9088cd26d559bbe51948 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Sep 2023 10:51:15 +0000 Subject: watch: reset HUP + USR1 signal handlers in children Child processes handling IMAP/NNTP aren't going to want to handle config reloads nor forced rescans, those are exclusively for the parent. We'll leave a note that QUIT/TERM/INT can safely use the same callback for both parent and children, as I nearly made the mistake of resetting those to their default values in the child. --- script/public-inbox-watch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-watch b/script/public-inbox-watch index 870cd31b..d9215de9 100755 --- a/script/public-inbox-watch +++ b/script/public-inbox-watch @@ -41,7 +41,7 @@ if ($watch) { warn "# scanning\n"; $watch->trigger_scan('full'); }; - my $quit = sub { + my $quit = sub { # may be called in IMAP/NNTP children $watch->quit if $watch; $watch = undef; $0 .= ' quitting'; -- cgit v1.2.3-24-ge0c7