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

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

Thread Previous
From:
Kevin Ryde
Date:
May 2, 2010 17:09
Subject:
Re: [perl #74790] SelfLoader mixing sysseek() and tell()
Message ID:
87fx2avss7.fsf@blah.blah
"Eric Brine via RT" <perlbug-followup@perl.org> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About