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

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

Thread Next
From:
Father Chrysostomos via RT
Date:
September 26, 2010 16:42
Subject:
[perl #75154] Spawning threads with open directory handles causes a crash
Message ID:
rt-3.6.HEAD-5116-1285544552-1301.75154-15-0@perl.org
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?


Thread Next


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