Date: Sat, 10 Nov 2001 09:24:29 -0800 (PST) From: <tobez@FreeBSD.org> To: bachue@bachue.com, tobez@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/31836: When killed Perl should flush output buffers Message-ID: <200111101724.fAAHOTe21914@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: When killed Perl should flush output buffers
State-Changed-From-To: open->closed
State-Changed-By: tobez
State-Changed-When: Sat Nov 10 09:20:40 PST 2001
State-Changed-Why:
> When the Perl interpreter is killed with SIGINT or SIGTERM (and
> probably many other trappable signals), it doesn't flush its output
> buffers.
It should not. If you want this functionality, set your own signal
handlers ($SIG{INT} = sub { ... }; $SIG{TERM} = sub { ... };). It is
not the job of the interpreter to do this. Perl, just like C, uses
stdio, which is buffered by default. In C, just like in Perl, you will
have to set your own signal handlers if you want to flush the buffers on
a signal.
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31836
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111101724.fAAHOTe21914>
