Document the _exit() issue with threads in Linux [perl #17057].
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 1 Apr 2003 16:17:04 +0000 (16:17 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 1 Apr 2003 16:17:04 +0000 (16:17 +0000)
p4raw-id: //depot/perl@19118

ext/POSIX/POSIX.pod

index dd2071b..d16bc32 100644 (file)
@@ -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