This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update the dirhandle entry in thread.pm’s docs
authorFather Chrysostomos <sprout@cpan.org>
Tue, 28 Sep 2010 04:42:13 +0000 (21:42 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 28 Sep 2010 05:20:27 +0000 (22:20 -0700)
dist/threads/lib/threads.pm

index e98fb50..a3c5f84 100644 (file)
@@ -1007,8 +1007,14 @@ discouraged.
 
 =item Open directory handles
 
 
 =item Open directory handles
 
-Spawning threads with open directory handles (see
-L<opendir|perlfunc/"opendir DIRHANDLE,EXPR">) will crash the interpreter.
+In perl 5.14.0 and higher, if your system does not support the C<fchdir> C
+function, directory handles (see
+L<opendir|perlfunc/"opendir DIRHANDLE,EXPR">) will not be copied to new
+threads. You can use the C<d_fchdir> variable in L<Config.pm|Config> to
+determine whether your system supports it.
+
+In prior perl versions, spawning threads with open directory handles would
+crash the interpreter.
 L<[perl #75154]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75154>
 
 =item Perl Bugs and the CPAN Version of L<threads>
 L<[perl #75154]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75154>
 
 =item Perl Bugs and the CPAN Version of L<threads>