[POWERPC] Implement logging of unhandled signals

Implement show_unhandled_signals sysctl + support to print when a process
is killed due to unhandled signals just as i386 and x86_64 does.

Default to having it off, unlike x86 that defaults on.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Olof Johansson
2007-10-12 10:20:07 +10:00
committed by Paul Mackerras
parent b63db45ca4
commit d0c3d534a4
5 changed files with 71 additions and 2 deletions

View File

@ -16,6 +16,12 @@
#include "signal.h"
/* Log an error when sending an unhandled signal to a process. Controlled
* through debug.exception-trace sysctl.
*/
int show_unhandled_signals = 0;
/*
* Allocate space for the signal frame
*/