From: Artur Bergman Date: Thu, 18 Apr 2002 07:15:55 +0000 (+0000) Subject: Always flush the PerlIO buffers after running END blocks in X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e00b64d473c19cddad5bacc2934a3b48e9798c1a;p=p5sagit%2Fp5-mst-13.2.git Always flush the PerlIO buffers after running END blocks in perl_destruct. This should fix ext/threads/t/end.t under Win32. p4raw-id: //depot/perl@15989 --- diff --git a/perl.c b/perl.c index c32cc0a..ef5b070 100644 --- a/perl.c +++ b/perl.c @@ -425,6 +425,9 @@ perl_destruct(pTHXx) LEAVE; FREETMPS; + /* Need to flush since END blocks can produce output */ + PerlIO_flush((PerlIO*)NULL); + if (CALL_FPTR(PL_threadhook)(aTHX)) { /* Threads hook has vetoed further cleanup */ return STATUS_NATIVE_EXPORT;;