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

Re: PerlIO and shutdown

Thread Previous | Thread Next
Arthur Bergman
July 22, 2001 03:56
Re: PerlIO and shutdown
Message ID:
01-07-21 21.28, skrev Ilya Zakharevich på följande:

> The question is: what to do with files on the interpreter exit (with
> Perl_destruct_level > 0).  What I can see is that
> 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.


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