summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-12 10:11:42 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-04-12 10:11:42 +0000
commit8852854d0fb726cf7f939935fe82f852fdf9d0ac (patch)
tree8d272c5c3f7eeb7521b28eb5fa96a766fa9c4a2f /sys/kern/kern_sig.c
parent027171c03bec751b38f4a293c3af6b3124e0d172 (diff)
move accounting flags to struct process; idea and ok guenther
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 86dfae55cf7..991744db1d3 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.139 2012/04/11 15:28:50 kettenis Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.140 2012/04/12 10:11:41 mikeb Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -1345,7 +1345,7 @@ sigexit(struct proc *p, int signum)
/* Mark process as going away */
atomic_setbits_int(&p->p_flag, P_WEXIT);
- p->p_acflag |= AXSIG;
+ p->p_p->ps_acflag |= AXSIG;
if (sigprop[signum] & SA_CORE) {
p->p_sisig = signum;
@@ -1444,7 +1444,7 @@ coredump(struct proc *p)
VATTR_NULL(&vattr);
vattr.va_size = 0;
VOP_SETATTR(vp, &vattr, cred, p);
- p->p_acflag |= ACORE;
+ p->p_p->ps_acflag |= ACORE;
io.io_proc = p;
io.io_vp = vp;