Subject: Re: signal(SIGSEGV, SIG_IGN) -> 100% CPU
To: Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 06/10/1999 12:34:49
On Thu, Jun 10, 1999 at 09:53:52AM +0200, Hubert Feyrer wrote:
> On 9 Jun 1999, Chris G. Demetriou wrote:
> > you have effectively written a complex while(1) ; loop, or, probably
> > closer, a whlie(1) getpid(); loop.
> 
> Can you please explain this a bit more? I don't see it...
> By what I understand, this installs the handler, then pipe(2) causes some
> fault, the fault is ignored, and then the program continues.

no. The program restarts.

> Or is the pipe(2) call restarted after the fault is detected?

Uhm, whether you are executing a system call is irrelevant. The program
re-executes the instruction that caused the SEGV. If this was doing a 
system call, you reexecute calling the system.

Regards,
	Ignatios