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

Re: [perl #75154] Spawning threads with open directory handles causesa crash

Thread Previous | Thread Next
From:
Jerry D. Hedden
Date:
September 27, 2010 13:01
Subject:
Re: [perl #75154] Spawning threads with open directory handles causesa crash
Message ID:
AANLkTi=nvjO94+UA85cYcmbC-qgwajqrL9Nj-KQjTvRL@mail.gmail.com
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.

Thread Previous | 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