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

Re: [perl #74790] SelfLoader mixing sysseek() and tell()

Thread Previous
Kevin Ryde
May 2, 2010 17:09
Re: [perl #74790] SelfLoader mixing sysseek() and tell()
Message ID:
"Eric Brine via RT" <> writes:
> I'm not sure what the purpose of the sysseek is there,

I suspect that it's for when a forked child or another thread has read
and moved the sysseek position and therefore must be put back to the
handle's tell() position.  If so it sounds a little misguided, you'd
probably hope for a better way for threads/forks to cooperate on the
DATA handle.

> change tell($fh) to sysseek($fh,0,1), not changing sysseek to seek.

Perhaps, if the systell() was grabbed at the right time.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About