From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30399 invoked from network); 12 Nov 1998 12:03:08 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 12 Nov 1998 12:03:08 -0000 Received: from post.mail.demon.net (post-20.mail.demon.net [194.217.242.27]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA09627 for ; Thu, 12 Nov 1998 07:03:07 -0500 Received: from [158.152.73.32] (helo=bragg.art.co.uk) by post.mail.demon.net with esmtp (Exim 2.05demon1 #1) id 0zdvSs-0007SE-00; Thu, 12 Nov 1998 12:03:06 +0000 Received: from art.co.uk (zehnder.art.co.uk [192.168.1.76]) by bragg.art.co.uk (8.8.5/8.8.5) with ESMTP id MAA21858; Thu, 12 Nov 1998 12:03:03 GMT Sender: jrc@art.co.uk Message-ID: <364ACE92.736C9967@art.co.uk> Date: Thu, 12 Nov 1998 12:03:30 +0000 From: John Connett Organization: Advanced Rendering Technology X-Mailer: Mozilla 4.05C-SGI [en] (X11; I; IRIX 6.3 IP32) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Blocking SIGFPEs? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit It appears that with the Red Hat 5.1 (and 5.2) it is not possible to block SIGFPEs using sigprocmask(SIG_BLOCK, ...). Although SIGFPE is correctly marked for blocking, at the three places in arch/alpha/kernel/traps.c where the signal is raised the following code is used: force_sig(SIGFPE, current); Using force_sig causes the signal to be unblocked and the SIGFPE is then delivered immediately. SIGFPEs can be successfully blocked in this manner on Digital UNIX V4.0B. My quick fix was to replace the three force_sig calls with the following: send_sig(SIGFPE, current, 1); This appears to do the trick but I would much appreciate comments from those more familiar with this area of the alpha linux kernel! I suspect there may have been a good reason for using force_sig in preference to send_sig. Thanks in anticipation -- John Connett (jrc@art.co.uk)