Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: reading from a file after a seek isn't working for me

by almut (Canon)
on Oct 21, 2009 at 23:23 UTC ( [id://802565]=note: print w/replies, xml ) Need Help??


in reply to Re^4: reading from a file after a seek isn't working for me
in thread reading from a file after a seek isn't working for me

...as I don't see any special treatment for STDOUT in the perlio.c scrap

Just to be clear: the perlio.c snippet was only meant to show where the PerlIOValid() check happens for the read.  The decision between using a direct close vs. the indirect dup2, OTOH, is more likely to happen in Perl's open implementation (which I didn't yet have time to wade through — it's rather lengthy...  and for a low-depth explanation I figured the manifestation of the difference in the strace should be sufficient evidence).

Replies are listed 'Best First'.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://802565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-16 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found