Flush buffers on thread closedown.
Artur Bergman [Thu, 27 Sep 2001 08:53:00 +0000 (08:53 +0000)]
p4raw-id: //depot/perl@12244

ext/threads/threads.xs

index cbfcd1f..5caedbe 100755 (executable)
@@ -56,6 +56,7 @@ void* Perl_thread_run(void * arg) {
        }
 
        MUTEX_LOCK(&thread->mutex);
+       PerlIO_flush((PerlIO*)NULL);
        perl_destruct(thread->interp);  
        perl_free(thread->interp);
        if(thread->detached == 1) {