OSDN Git Service

* server.c (main): Ensure that thread related realtime signals
authorkevinb <kevinb>
Thu, 3 Jun 2004 18:29:18 +0000 (18:29 +0000)
committerkevinb <kevinb>
Thu, 3 Jun 2004 18:29:18 +0000 (18:29 +0000)
are ignored.

rda/unix/ChangeLog
rda/unix/server.c

index 7d40105..f397e2e 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-03  Kevin Buettner  <kevinb@redhat.com>
+
+       * server.c (main): Ensure that thread related realtime signals
+       are ignored.
+
 2004-04-20  Kevin Buettner  <kevinb@redhat.com>
 
        * thread-db.c (lookup_sym): New function.
index 8b41c94..4eb424c 100644 (file)
@@ -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)
     {