develooper Front page | perl.perl5.porters | Postings from July 2001

Re: PerlIO and shutdown

Thread Previous
Ilya Zakharevich
July 22, 2001 12:19
Re: PerlIO and shutdown
Message ID:
On Sun, Jul 22, 2001 at 12:55:32PM +0200, Arthur Bergman wrote:
> > a) PerlIO is not flush()ing buffers, postponing this until atexit-time;
> > 
> > b) PerlIO is close()ing file descriptors at atexit-time;
> > 
> > What happens with PerlIO-less Perl?  What do we *want* to happen?
> > 
> > It is obvious that "a" and "b" are both unacceptable.  With
> > Perl_destruct_level > 0 one expects to have many sequential
> > interpreters (or one intepreter inside much longer living process), so
> > having output sitting in some Perl-initiated buffer is not a good thing.
> You forget the case with multiple pararell interpreters sharing the same
> file descriptors, seems like they need to be refcounted.

Yes, this is another can of worms.  Are PerlIO buffers per-process, or

But I would like to understand the simple case of sequential
interpreters first.


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