Update.
1999-12-21 Ulrich Drepper <drepper@cygnus.com> * manager.c (pthread_handle_create): Set p_pid of new thread before calling the callback function to report a new thread.
This commit is contained in:
parent
958d68077b
commit
46fd4f671c
@ -1,3 +1,8 @@
|
||||
1999-12-21 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* manager.c (pthread_handle_create): Set p_pid of new thread
|
||||
before calling the callback function to report a new thread.
|
||||
|
||||
1999-12-20 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* pthread.c (pthread_initialize): Move getrlimit call after
|
||||
|
@ -445,6 +445,11 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
|
||||
new_thread->p_eventbuf.eventnum = TD_CREATE;
|
||||
__pthread_last_event = new_thread;
|
||||
|
||||
/* We have to set the PID here since the callback function
|
||||
in the debug library will need it and we cannot guarantee
|
||||
the child got scheduled before the debugger. */
|
||||
new_thread->p_pid = pid;
|
||||
|
||||
/* Now call the function which signals the event. */
|
||||
__linuxthreads_create_event ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user