From a0f54ff833d0af03d6426f1464d3b51e380bde31 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2023 23:07:31 +0000 Subject: sigfd: pass signal name rather than number to callback This is consistent with normal Perl %SIG handlers, and allows -cindex signal handlers to be implemented consistently across platforms. --- lib/PublicInbox/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Daemon.pm') diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm index 6152a5d3..57435421 100644 --- a/lib/PublicInbox/Daemon.pm +++ b/lib/PublicInbox/Daemon.pm @@ -510,7 +510,7 @@ sub upgrade_aborted ($) { warn $@, "\n" if $@; } -sub reap_children { # $_[0] = 'CHLD' or POSIX::SIGCHLD() +sub reap_children { # $_[0] = 'CHLD' while (1) { my $p = waitpid(-1, WNOHANG) or return; if (defined $reexec_pid && $p == $reexec_pid) { -- cgit v1.2.3-24-ge0c7