diff options
author | Artur Bergman <sky@nanisky.com> | 2002-04-18 07:15:55 +0000 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2002-04-18 07:15:55 +0000 |
commit | e00b64d473c19cddad5bacc2934a3b48e9798c1a (patch) | |
tree | 8250ca0620d1fb66b1a7594ecd4bc766e0e7209e /perl.c | |
parent | 9f375a433613c9bc1f6215ee2370484d82068b54 (diff) | |
download | perl-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
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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;; |