[ILUG] C - catching or ignoring SIGFPE

Fergal Moran fergal.moran at wasptech.com
Tue Nov 13 08:41:14 GMT 2001


> From: Kevin O Riordan [mailto:kor at compsoc.com] 
> Morning everybody,
> 	Is there any way to catch, or ignore, a SIGFPE ?  This 
> isn't for any practical reason, just to satisfy curiosity.

If my flaky memory serves me correctly you need something like so..

  struct sigaction act;
  
  act.sa_handler = SIG_IGN; //ignore signal
  signal(SIGFPE, &act, 0);

Fergal..




More information about the ILUG mailing list