projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
dfbf5f7
)
Flush IO buffers before starting a thread, this mimics fork and seems like a saneer...
Artur Bergman [Mon, 22 Oct 2001 17:41:07 +0000 (17:41 +0000)]
p4raw-id: //depot/perl@12569
ext/threads/threads.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/threads/threads.xs
b/ext/threads/threads.xs
index
b2fa87e
..
6d8394f
100755
(executable)
--- a/
ext/threads/threads.xs
+++ b/
ext/threads/threads.xs
@@
-91,7
+91,7
@@
SV* Perl_thread_create(char* class, SV* init_function, SV* params) {
obj = newSVrv(obj_ref, class);
sv_setiv(obj, (IV)thread);
SvREADONLY_on(obj);
-
+ PerlIO_flush((PerlIO*)NULL);
current_perl = PERL_GET_CONTEXT;
/*