summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2002-04-18 07:15:55 +0000
committerArtur Bergman <sky@nanisky.com>2002-04-18 07:15:55 +0000
commite00b64d473c19cddad5bacc2934a3b48e9798c1a (patch)
tree8250ca0620d1fb66b1a7594ecd4bc766e0e7209e
parent9f375a433613c9bc1f6215ee2370484d82068b54 (diff)
downloadperl-e00b64d473c19cddad5bacc2934a3b48e9798c1a.tar.gz
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
-rw-r--r--perl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index c32cc0a16e..ef5b07038a 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;;