Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Erik E. Fair <fair@netbsd.org>
List: source-changes
Date: 02/05/2000 23:30:01
Module Name:	syssrc
Committed By:	fair
Date:		Sun Feb  6 07:30:00 UTC 2000

Modified Files:
	syssrc/sys/kern: kern_sig.c kern_sysctl.c
	syssrc/sys/sys: sysctl.h

Log Message:
Add kernel logging of processes which exit on signals which can
cause a core to drop, and whether the core dropped, or, if it did
not, why not (i.e. error number). Logs process ID, name, signal that
hit it, and whether the core dump was successful.

logging only happens if kern_logsigexit is non-zero, and it can be
changed by the new sysctl(3) value KERN_LOGSIGEXIT. The name of this
sysctl and its function are taken from FreeBSD, at the suggestion
of Greg Woods in PR 6224. Default behavior is zero for a normal
kernel, and one for a kernel compiled with DIAGNOSTIC.


To generate a diff of this commit:
cvs rdiff -r1.95 -r1.96 syssrc/sys/kern/kern_sig.c
cvs rdiff -r1.56 -r1.57 syssrc/sys/kern/kern_sysctl.c
cvs rdiff -r1.39 -r1.40 syssrc/sys/sys/sysctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.