Skip to content

Commit 0a7712a

Browse files
stepnemkhwilliamson
authored andcommitted
perlipc.pod: correct the safe signals bypass suggestion
Just saying that sigaction() bypasses safe signals is misleading: the behavior depends on the 'safe' flag of the SigAction object passed to it.
1 parent fd8f7c8 commit 0a7712a

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
@@ -310,7 +310,8 @@ written twice.
310310
Some networking library functions like gethostbyname() are known to have
311311
their own implementations of timeouts which may conflict with your
312312
timeouts. If you have problems with such functions, try using the POSIX
313-
sigaction() function, which bypasses Perl safe signals. Be warned that
313+
sigaction() function with SigAction objects, which bypass Perl safe signals
314+
unless you set their C<safe> flag explicitly. Be warned that
314315
this does subject you to possible memory corruption, as described above.
315316

316317
Instead of setting C<$SIG{ALRM}>:

0 commit comments

Comments
 (0)