From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1447 invoked by alias); 3 Jun 2004 18:35:07 -0000 Mailing-List: contact rda-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rda-owner@sources.redhat.com Received: (qmail 1438 invoked from network); 3 Jun 2004 18:35:06 -0000 Date: Thu, 03 Jun 2004 18:35:00 -0000 From: Kevin Buettner To: rda@sources.redhat.com Subject: [PATCH] Ignore thread related realtime signals Message-Id: <20040603113459.5e48889c@saguaro> Organization: Red Hat X-Mailer: Sylpheed version 0.9.8claws30 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-q2/txt/msg00004.txt.bz2 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) {