summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-04-01 16:17:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-01 16:17:04 +0000
commit15978375e3ac30958ab56d2e88249ad742eecd30 (patch)
tree8e9dd723485f35c3eab3be0f6fe465ba171cc75d
parent3fc971374f1b931c73c9d94ee9ba7b82bfa682de (diff)
downloadperl-15978375e3ac30958ab56d2e88249ad742eecd30.tar.gz
Document the _exit() issue with threads in Linux [perl #17057].
p4raw-id: //depot/perl@19118
-rw-r--r--ext/POSIX/POSIX.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod
index dd2071bfb4..d16bc3280f 100644
--- a/ext/POSIX/POSIX.pod
+++ b/ext/POSIX/POSIX.pod
@@ -68,6 +68,12 @@ all. This could be construed to be a bug.
This is identical to the C function C<_exit()>. It exits the program
immediately which means among other things buffered I/O is B<not> flushed.
+Note that when using threads and in Linux this is B<not> a good way to
+exit a thread because in Linux processes and threads are kind of the
+same thing (Note: while this is the situation in early 2003 there are
+projects under way to have threads with more POSIXly semantics in Linux).
+If you want not to return from a thread, detach the thread.
+
=item abort
This is identical to the C function C<abort()>. It terminates the