Front page | perl.perl5.porters |
Postings from July 2001
Re: PerlIO and shutdown
Thread Previous
|
Thread Next
From:
Arthur Bergman
Date:
July 22, 2001 03:56
Subject:
Re: PerlIO and shutdown
Message ID:
B7807DC3.2720%arthur@contiller.se
01-07-21 21.28, skrev Ilya Zakharevich på ilya@math.ohio-state.edu 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.
--
Arthur
Thread Previous
|
Thread Next