From b92ad8d61f18a3e9a61434e2e3252efd862bd7f4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 7 Jan 1999 11:53:05 +0000 Subject: 1999-01-07 Xavier Leroy * pthread.c: Use a third signal __pthread_sig_debug distinct from __pthread_sig_cancel to notify gdb when a thread is created * manager.c: Likewise. * internals.h: Likewise. * signals.c: The implementation of sigwait(s) assumed that all signals in s have signal handlers already attached. This is not required by the standard, so make it work also if some of the signals have no handlers. --- linuxthreads/manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linuxthreads/manager.c') diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c index 5a5420d9a9..cf9796ac2e 100644 --- a/linuxthreads/manager.c +++ b/linuxthreads/manager.c @@ -161,7 +161,8 @@ int __pthread_manager(void *arg) break; case REQ_DEBUG: /* Make gdb aware of new thread */ - if (__pthread_threads_debug) raise(__pthread_sig_cancel); + if (__pthread_threads_debug && __pthread_sig_debug > 0) + raise(__pthread_sig_debug); restart(request.req_thread); break; } @@ -554,7 +555,7 @@ static void pthread_handle_exit(pthread_descr issuing_thread, int exitcode) _exit(0); } -/* Handler for __pthread_sig_restart in thread manager thread */ +/* Handler for __pthread_sig_cancel in thread manager thread */ void __pthread_manager_sighandler(int sig) { -- cgit v1.2.3