[Mono-list] SIGKILL/SIGTERM handling

Michal Moskal malekith@pld-linux.org
Mon, 10 Mar 2003 00:12:07 +0100


On Sun, Mar 09, 2003 at 11:19:53PM +0100, Jerome Laban wrote:
> Hi,
> 
>     Did anyone had to intercept SIGKILL/SIGTERM from a C# application
> ? I'm trying to cleanly terminate application, but adding a new handler
> for these two signals in C does not seem to be enough...

>From signal(7) manpage:

  The signals SIGKILL and SIGSTOP cannot be caught, blocked, or  ignored.

Therefore you can only intercept SIGTERM.

-- 
: Michal Moskal ::::: malekith/at/pld-linux.org :  GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::: Wroclaw University, CS Dept :  {E-,w}-- {b++,e}>+++ h