This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: Fix SIGRTMIN problems with glibc 2.3 [2/2]
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 26 Mar 2003 11:35:48 -0500
- Subject: PATCH: Fix SIGRTMIN problems with glibc 2.3 [2/2]
Here's the gdbserver parts of my last change. Same explanation, same
solution. Eventually I'll deal with the FIXME you can see in the patch
below...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-03-26 Daniel Jacobowitz <drow at mvista dot com>
* linux-low.c (linux_create_inferior): Use __SIGRTMIN.
(linux_wait_for_event, linux_init_signals): Likewise.
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.20
diff -u -p -r1.20 linux-low.c
--- linux-low.c 18 Nov 2002 00:37:50 -0000 1.20
+++ linux-low.c 26 Mar 2003 16:32:43 -0000
@@ -147,7 +147,7 @@ linux_create_inferior (char *program, ch
{
ptrace (PTRACE_TRACEME, 0, 0, 0);
- signal (SIGRTMIN + 1, SIG_DFL);
+ signal (__SIGRTMIN + 1, SIG_DFL);
setpgid (0, 0);
@@ -493,8 +493,8 @@ linux_wait_for_event (struct thread_info
/* FIXME drow/2002-06-09: Get signal numbers from the inferior's
thread library? */
if (WIFSTOPPED (wstat)
- && (WSTOPSIG (wstat) == SIGRTMIN
- || WSTOPSIG (wstat) == SIGRTMIN + 1))
+ && (WSTOPSIG (wstat) == __SIGRTMIN
+ || WSTOPSIG (wstat) == __SIGRTMIN + 1))
{
if (debug_threads)
fprintf (stderr, "Ignored signal %d for %d (LWP %d).\n",
@@ -1248,7 +1248,7 @@ linux_init_signals ()
{
/* FIXME drow/2002-06-09: As above, we should check with LinuxThreads
to find what the cancel signal actually is. */
- signal (SIGRTMIN+1, SIG_IGN);
+ signal (__SIGRTMIN+1, SIG_IGN);
}
void