[Dev] Re: simple daemon dies

Mike McLean dev@trilug.org
Thu, 13 Jun 2002 16:39:05 -0400


Peter Long wrote:
> Again according to man 7 signal, SIGSEGV is signaled when a segmentation
> fault occurs. I wonder if you could catch it and then try extract some
> usefull information from the system. At the very least you could log the
> fact that is occured.

You can indeed catch SIGSEGV.  The only signals that cannot be caught 
are SIGKILL and SIGSTOP.