New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLOB_ERROR shared across threads #6822
Comments
From mjp-perl-ZYsBlwkHGFY@pilcrow.madison.wi.usCreated by perlbuild@box.securepipe.comIs it just me, or is File::Glob::GLOB_ERROR() inappropriately $ cat globbit.pl $ perl globbit.pl Also observed under 5.8.0, FWIW. Perl Info
|
From @rgsmjp-perl-ZYsBlwkHGFY@pilcrow.madison.wi.us (via RT) wrote:
No, GLOB_ERROR is actually stored in a thread specific place. I don't know if it's possible to register code to be called at
|
From mjp-perl@pilcrow.madison.wi.us[rafael - Tue Oct 7 15:41:03 2003]:
Hmm -- could you try the following example? For me, Thread #1 changes $ cat glob2.pl sub globerr() { e("/tmp"); $ perl glob2.pl Same config as before. It surely looks to me like the value being I think I understand what the XS is trying to do, I just don't see that
ISTM that storing the C return value of glob() in an ordinary, unshared Regards, |
From @rgsAccording to Michael J.Pomraning :
I can see that. I don't know why it behaves that way ; I just
|
From mjp-perl@pilcrow.madison.wi.usTo return briefly to my first example: [rafael - Tue Oct 7 15:41:03 2003]:
All glob()ing threads were serially spawned and join()ed by the same (I don't mean to be pointed, but I'd like to make sure I understand all Thanks for your attention to this! It's been bugging me since Feb. Regards, |
Migrated from rt.perl.org#24138 (status was 'open')
Searchable as RT24138$
The text was updated successfully, but these errors were encountered: