]> err.no Git - linux-2.6/commit
signals: allow the kernel to actually kill /sbin/init
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:53:05 +0000 (00:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:37 +0000 (08:29 -0700)
commit80fe728d593e3a048a56610de932919f7d6d968a
treeff8effec1d05d871bcbb1347947d2a0970a8ff32
parent7a5e873f096e04e6d8719e4ecb7b70d2decca503
signals: allow the kernel to actually kill /sbin/init

Currently the buggy /sbin/init hangs if SIGSEGV/etc happens.  The kernel sends
the signal, init dequeues it and ignores, returns from the exception, repeats
the faulting instruction, and so on forever.

Imho, such a behaviour is not good.  I think that the explicit loud death of
the buggy /sbin/init is better than the silent hang.

Change force_sig_info() to clear SIGNAL_UNKILLABLE when the task should be
really killed.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c