Front page | perl.perl5.porters |
Postings from July 2001
Re: PerlIO and shutdown
Thread Previous
From:
Ilya Zakharevich
Date:
July 22, 2001 12:19
Subject:
Re: PerlIO and shutdown
Message ID:
20010722151913.A540@math.ohio-state.edu
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
per-interpreter?
But I would like to understand the simple case of sequential
interpreters first.
Ilya
Thread Previous