From 15978375e3ac30958ab56d2e88249ad742eecd30 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi <jhi@iki.fi> Date: Tue, 1 Apr 2003 16:17:04 +0000 Subject: Document the _exit() issue with threads in Linux [perl #17057]. p4raw-id: //depot/perl@19118 --- ext/POSIX/POSIX.pod | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext') 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 -- cgit v1.2.1