develooper Front page | perl.perl5.porters | Postings from September 2010

[perl #75154] Spawning threads with open directory handles causes a crash

Thread Previous
From:
Father Chrysostomos via RT
Date:
September 27, 2010 21:32
Subject:
[perl #75154] Spawning threads with open directory handles causes a crash
Message ID:
rt-3.6.HEAD-24759-1285648367-1138.75154-15-0@perl.org
On Mon Sep 27 13:01:46 2010, jdhedden wrote:
> On Sun, Sep 26, 2010 at 19:42, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
> > On Tue Sep 21 10:59:20 2010, jdhedden wrote:
> >> This patch is written to rely on dirent->d_namlen which doesn't always
> >> exist.  (I tried it on Cygwin and got build failures).  I tried
> >> replacing occurrences of "dirent->d_namlen" with
> >> "strlen(dirent->d_name)+1", and it built and tested successfully.
> >
> > Why +1? d_namlen does not include the null.
> >
> > Does this new patch work for you?
> 
> Yes, your new patch compiles and tests successfully.
> 

Applied as 11a11e.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About