This is the mail archive of the rda@sources.redhat.com mailing list for the rda project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Ignore thread related realtime signals


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)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]