public inbox for rda@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Ignore thread related realtime signals
@ 2004-06-03 18:35 Kevin Buettner
  0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2004-06-03 18:35 UTC (permalink / raw)
  To: rda

My previous patch on this matter worked for uClibc, but not for glibc.
The patch below makes it work for both.

	* server.c (main): Ensure that thread related realtime signals
	are ignored.

Index: server.c
===================================================================
RCS file: /cvs/src/src/rda/unix/server.c,v
retrieving revision 1.5
diff -u -p -r1.5 server.c
--- server.c	20 Apr 2004 20:08:52 -0000	1.5
+++ server.c	3 Jun 2004 18:25:32 -0000
@@ -374,6 +374,7 @@ main (int argc, char **argv)
 
   signal (SIGCHLD, chld_handler);
 
+#if defined(__SIGRTMIN) && defined(__SIGRTMAX)
   {
     int sig;
     /* Ignore realtime signals.  We do this so as to not terminate
@@ -381,9 +382,10 @@ main (int argc, char **argv)
        realtime signals are used for thread support, and, for some
        reason, some environments send these signals to RDA as well
        as the application.  (And some don't.)  */
-    for (sig = SIGRTMIN; sig <= SIGRTMAX; sig++)
+    for (sig = __SIGRTMIN; sig <= __SIGRTMAX; sig++)
       signal (sig, SIG_IGN);
   }
+#endif
 
   if (portno != 0)
     {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-03 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 18:35 [PATCH] Ignore thread related realtime signals Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).