From: Jarkko Hietaniemi Date: Tue, 1 Apr 2003 16:17:04 +0000 (+0000) Subject: Document the _exit() issue with threads in Linux [perl #17057]. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=15978375e3ac30958ab56d2e88249ad742eecd30;p=p5sagit%2Fp5-mst-13.2.git Document the _exit() issue with threads in Linux [perl #17057]. p4raw-id: //depot/perl@19118 --- diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index dd2071b..d16bc32 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 flushed. +Note that when using threads and in Linux this is B 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. It terminates the