2002-09-23 Thomas Pfaff <[EMAIL PROTECTED]>
* thread.cc (MTinterface::fixup_after_fork): Reset threadcount to
1 after fork.
diff -urp src.old/winsup/cygwin/thread.cc src/winsup/cygwin/thread.cc
--- src.old/winsup/cygwin/thread.cc Mon Sep 23 14:26:30 2002
+++ src/winsup/cygwin/thread.cc Mon Sep 23 14:25:34 2002
@@ -210,6 +210,8 @@ MTinterface::fixup_before_fork (void)
void
MTinterface::fixup_after_fork (void)
{
+ threadcount = 1; /*1 current thread after fork.*/
+
pthread_key::fixup_after_fork ();
pthread_mutex *mutex = mutexs;
debug_printf ("mutexs is %x",mutexs);