Subject: Re: signal(SIGSEGV, SIG_IGN) -> 100% CPU
To: Christos Zoulas <christos@zoulas.com>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 06/10/1999 16:52:49
On Thu, Jun 10, 1999 at 02:31:05PM +0000, Christos Zoulas wrote:
> Actually not on the sparc because I would get a bus error :-)

Ignore SIGBUS then, or
#include <signal.h>
main(){int i;signal(SIGSEGV, SIG_IGN);i = *(char *)0xdeadbeef;exit(0);}

Hm. Just tested. Apparently, on Solaris 2.6, ignorign SEGV or BUS is
silently ignored.

	Ignatios

-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)