* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
prior to pthread objects.
This commit is contained in:
parent
12390bc40d
commit
8824332846
@ -1,3 +1,8 @@
|
|||||||
|
2003-03-04 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
|
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
|
||||||
|
prior to pthread objects.
|
||||||
|
|
||||||
2003-03-04 Jason Tishler <jason@tishler.net>
|
2003-03-04 Jason Tishler <jason@tishler.net>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::dup): Initialize type.
|
* fhandler_socket.cc (fhandler_socket::dup): Initialize type.
|
||||||
|
@ -213,6 +213,10 @@ void
|
|||||||
MTinterface::fixup_after_fork (void)
|
MTinterface::fixup_after_fork (void)
|
||||||
{
|
{
|
||||||
pthread_key::fixup_after_fork ();
|
pthread_key::fixup_after_fork ();
|
||||||
|
|
||||||
|
threadcount = 1;
|
||||||
|
pthread::initMainThread (true);
|
||||||
|
|
||||||
pthread_mutex *mutex = mutexs;
|
pthread_mutex *mutex = mutexs;
|
||||||
debug_printf ("mutexs is %x",mutexs);
|
debug_printf ("mutexs is %x",mutexs);
|
||||||
while (mutex)
|
while (mutex)
|
||||||
@ -234,10 +238,6 @@ MTinterface::fixup_after_fork (void)
|
|||||||
sem->fixup_after_fork ();
|
sem->fixup_after_fork ();
|
||||||
sem = sem->next;
|
sem = sem->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread::initMainThread (true);
|
|
||||||
|
|
||||||
threadcount = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pthread calls */
|
/* pthread calls */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user