]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 21 Dec 1999 23:50:51 +0000 (23:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 21 Dec 1999 23:50:51 +0000 (23:50 +0000)
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.

linuxthreads/ChangeLog
linuxthreads/manager.c

index e994dcc2971fc8252120fe236f5e80e74e911f42..adeaf4093f0f9a418d33709180a05ae889f4b541 100644 (file)
@@ -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
index 0cbb426c9d383c53deb32be7e7ef5950464c50d6..9f9585d8ac4acd052edacdaf34e6b1cdf7b1aeec 100644 (file)
@@ -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 ();
 
This page took 0.050644 seconds and 5 git commands to generate.