summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-07-09 18:12:37 +0000
committerache <ache@FreeBSD.org>1996-07-09 18:12:37 +0000
commit09d5c22b13fb2393e602fe00723c07a75fdf32dd (patch)
treef7a08fbb662fdfb8cc5fc0efcbb0ae443dd051fb /sys
parenta6d4555f2bdeaff4d868f81017808103a0bb95ca (diff)
downloadFreeBSD-src-09d5c22b13fb2393e602fe00723c07a75fdf32dd.zip
FreeBSD-src-09d5c22b13fb2393e602fe00723c07a75fdf32dd.tar.gz
Log not exited signal only, but the fact that core dumped (or not) too
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sig.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 60c0639..7a9b6b8 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
- * $Id: kern_sig.c,v 1.23 1996/03/30 15:15:30 peter Exp $
+ * $Id: kern_sig.c,v 1.24 1996/05/01 02:42:57 bde Exp $
*/
#include "opt_ktrace.h"
@@ -1203,12 +1203,13 @@ sigexit(p, signum)
* these messages.)
* XXX : Todo, as well as euid, write out ruid too
*/
- log(LOG_INFO, "pid %d (%s), uid %d: exited on signal %d\n",
- p->p_pid, p->p_comm,
- p->p_cred && p->p_ucred ? p->p_ucred->cr_uid : -1,
- signum);
if (coredump(p) == 0)
signum |= WCOREFLAG;
+ log(LOG_INFO, "pid %d (%s), uid %d: exited on signal %d%s\n",
+ p->p_pid, p->p_comm,
+ p->p_cred && p->p_ucred ? p->p_ucred->cr_uid : -1,
+ signum &~ WCOREFLAG,
+ signum & WCOREFLAG ? " (core dumped)" : "");
}
exit1(p, W_EXITCODE(0, signum));
/* NOTREACHED */
OpenPOWER on IntegriCloud