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
bug in fh pointers w/perlio on dup() #7017
Comments
From stas@stason.orgCreated by stas@stason.orgConsider the following short program: # using Symbol to support older perls __DATA__ w/o perlio we get: DATA: 309 the DATA fh pointer is correctly moved along with 'dup' w/ perlio we get: DATA: 309 the DATA fh pointer is frozen and doesn't get moved to as rgs quoted on irc: <rgs> that's what my dup(2) manpage says and Nicolas has followed up: <Nicholas> problem (presumably) is that duping by file This is observed with any perl 5.8.x Perl Info
|
From @smpeters
I wondering if either case you have above is correct. On Linux, I see steve@kirk:~$ PERLIO=:stdio perl rt_24818.pl According to dup(2), each file descriptor should be unique, so the Looking at the PERLIO_DEBUG output, one thing sticks out, but I don't For example, with :stdio with :perlio with :mmap with :unix On :unix, the address of the original filehandle is not getting sent in. |
The RT System itself - Status changed from 'new' to 'open' |
From stas@stason.orgSteve Peters via RT wrote:
I get the same with PERLIO=:stdio as you do, Steve. The w/o perlio test was with perl that had no perlio enabed. Here it is again: /tmp> env PERLIO=:perlio perl-5.8.6-ithread xxx -- |
Migrated from rt.perl.org#24818 (status was 'open')
Searchable as RT24818$
The text was updated successfully, but these errors were encountered: