Skip to content

Commit

Permalink
perlipc.pod: improve "exec from signal handler" signal mask comment
Browse files Browse the repository at this point in the history
"POSIX unmasks the sigprocmask properly" seems rather opaque.
Instead, explain the SA_NODEFER motivation directly.
  • Loading branch information
stepnem committed Apr 11, 2024
1 parent c77e6da commit e676714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pod/perlipc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e676714

Please sign in to comment.