From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,91ec6b63e7e70b5e,start X-Google-Attributes: gid111c93,public From: John Connett Subject: Blocking SIGFPEs? Date: 1998/11/13 Message-ID: <364C01F6.709F7471@art.co.uk>#1/1 X-Deja-AN: 411404013 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: threebti.demon.co.uk:158.152.73.32 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 910950876 nnrp-11:12116 NO-IDENT threebti.demon.co.uk:158.152.73.32 Organization: Advanced Rendering Technology MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha It appears that with the variant of the 2.0.35 kernel used in Red Hat 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)