summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/POSIX.pod
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/POSIX.pod')
-rw-r--r--Master/tlpkg/tlperl/lib/POSIX.pod32
1 files changed, 20 insertions, 12 deletions
diff --git a/Master/tlpkg/tlperl/lib/POSIX.pod b/Master/tlpkg/tlperl/lib/POSIX.pod
index 64852e94b6b..f7bd0f3a3c2 100644
--- a/Master/tlpkg/tlperl/lib/POSIX.pod
+++ b/Master/tlpkg/tlperl/lib/POSIX.pod
@@ -1196,6 +1196,10 @@ Synopsis:
Returns C<undef> on failure.
+Note that you can't reliably block or unblock a signal from its own signal
+handler if you're using safe signals. Other signals can be blocked or unblocked
+reliably.
+
=item sigsetjmp
C<sigsetjmp()> is C-specific: use C<eval {}> instead,
@@ -2184,33 +2188,37 @@ WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG WIFSTOPPED WSTOPSIG
=item WIFEXITED
-WIFEXITED($?) returns true if the child process exited normally
-(C<exit()> or by falling off the end of C<main()>)
+WIFEXITED(${^CHILD_ERROR_NATIVE}) returns true if the child process
+exited normally (C<exit()> or by falling off the end of C<main()>)
=item WEXITSTATUS
-WEXITSTATUS($?) returns the normal exit status of the child process
-(only meaningful if WIFEXITED($?) is true)
+WEXITSTATUS(${^CHILD_ERROR_NATIVE}) returns the normal exit status of
+the child process (only meaningful if WIFEXITED(${^CHILD_ERROR_NATIVE})
+is true)
=item WIFSIGNALED
-WIFSIGNALED($?) returns true if the child process terminated because
-of a signal
+WIFSIGNALED(${^CHILD_ERROR_NATIVE}) returns true if the child process
+terminated because of a signal
=item WTERMSIG
-WTERMSIG($?) returns the signal the child process terminated for
-(only meaningful if WIFSIGNALED($?) is true)
+WTERMSIG(${^CHILD_ERROR_NATIVE}) returns the signal the child process
+terminated for (only meaningful if WIFSIGNALED(${^CHILD_ERROR_NATIVE})
+is true)
=item WIFSTOPPED
-WIFSTOPPED($?) returns true if the child process is currently stopped
-(can happen only if you specified the WUNTRACED flag to waitpid())
+WIFSTOPPED(${^CHILD_ERROR_NATIVE}) returns true if the child process is
+currently stopped (can happen only if you specified the WUNTRACED flag
+to waitpid())
=item WSTOPSIG
-WSTOPSIG($?) returns the signal the child process was stopped for
-(only meaningful if WIFSTOPPED($?) is true)
+WSTOPSIG(${^CHILD_ERROR_NATIVE}) returns the signal the child process
+was stopped for (only meaningful if WIFSTOPPED(${^CHILD_ERROR_NATIVE})
+is true)
=back