Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Blocking SIGFPEs?
@ 1998-11-12 12:03 John Connett
  1998-11-13 14:05 ` Uncle George
  0 siblings, 1 reply; 2+ messages in thread
From: John Connett @ 1998-11-12 12:03 UTC (permalink / raw)
  To: axp-list

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-11-13 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-12 12:03 Blocking SIGFPEs? John Connett
1998-11-13 14:05 ` Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox