Skip to content

Commit e676714

Browse files
committed
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.
1 parent c77e6da commit e676714

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pod/perlipc.pod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ info to show that it works; it should be replaced with the real code.
204204
my $script = File::Basename::basename($0);
205205
my $SELF = catfile($FindBin::Bin, $script);
206206

207-
# POSIX unmasks the sigprocmask properly
207+
# Use SA_NODEFER to prevent SIGHUP from being blocked in
208+
# the new process (due to signal mask preservation across exec).
208209
my $sigset = POSIX::SigSet->new();
209210
my $action = POSIX::SigAction->new("sigHUP_handler",
210211
$sigset,

0 commit comments

Comments
 (0)