diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-02-03 09:31:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-02-03 09:31:42 +0000 |
commit | f549233427db72d1f3f51a1d4bca548361231b46 (patch) | |
tree | 99db58a1f30711a7133d110c6e36aebec8def264 /linuxthreads/pthread.c | |
parent | e72ed84d09121b1529febfb8446e764cbc4749db (diff) | |
download | glibc-f549233427db72d1f3f51a1d4bca548361231b46.zip glibc-f549233427db72d1f3f51a1d4bca548361231b46.tar.gz glibc-f549233427db72d1f3f51a1d4bca548361231b46.tar.bz2 |
Update.
1999-02-03 Jakub Jelinek <jj@ultra.linux.cz>
* sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Set branch
prediction correctly.
* sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Signal
takes a pointer to __sigcontext_t.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Do a nop after retl.
* sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Remove fork.S.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r-- | linuxthreads/pthread.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 4d182a8..42ed581 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -309,7 +309,12 @@ int __pthread_initialize_manager(void) __pthread_manager_thread.p_pid = pid; /* Make gdb aware of new thread manager */ if (__pthread_threads_debug && __pthread_sig_debug > 0) - raise(__pthread_sig_cancel); + { + raise(__pthread_sig_debug); + /* We suspend ourself and gdb will wake us up when it is + ready to handle us. */ + suspend(thread_self()); + } /* Synchronize debugging of the thread manager */ request.req_kind = REQ_DEBUG; __libc_write(__pthread_manager_request, (char *) &request, sizeof(request)); |