From e676714e69b92bede502d839a85a5ba7e99a7304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Thu, 11 Apr 2024 23:16:34 +0200 Subject: [PATCH] perlipc.pod: improve "exec from signal handler" signal mask comment "POSIX unmasks the sigprocmask properly" seems rather opaque. Instead, explain the SA_NODEFER motivation directly. --- pod/perlipc.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perlipc.pod b/pod/perlipc.pod index 30f08dd60c53..9b6538bffe61 100644 --- a/pod/perlipc.pod +++ b/pod/perlipc.pod @@ -204,7 +204,8 @@ info to show that it works; it should be replaced with the real code. my $script = File::Basename::basename($0); my $SELF = catfile($FindBin::Bin, $script); - # POSIX unmasks the sigprocmask properly + # Use SA_NODEFER to prevent SIGHUP from being blocked in + # the new process (due to signal mask preservation across exec). my $sigset = POSIX::SigSet->new(); my $action = POSIX::SigAction->new("sigHUP_handler", $sigset,