summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_unix.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-03-26 05:23:43 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-03-26 05:23:43 +0000
commit87c550209612d49384b0a8f1177ea278fc14bbc7 (patch)
treeb3a354d29c205e40b172f436bbd2f6299a6aef4f /sys/uvm/uvm_unix.c
parentf11198840aef6a17a2ba3d8668ef653d8adb535f (diff)
Move p_emul and p_sigcode from proc to process.
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
Diffstat (limited to 'sys/uvm/uvm_unix.c')
-rw-r--r--sys/uvm/uvm_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c
index 7bc42a14119..1aa9fcebdb4 100644
--- a/sys/uvm/uvm_unix.c
+++ b/sys/uvm/uvm_unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_unix.c,v 1.47 2013/01/16 21:47:08 deraadt Exp $ */
+/* $OpenBSD: uvm_unix.c,v 1.48 2014/03/26 05:23:42 guenther Exp $ */
/* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */
/*
@@ -174,7 +174,7 @@ uvm_coredump(struct proc *p, struct vnode *vp, struct ucred *cred,
}
if (!(entry->protection & VM_PROT_WRITE) &&
- entry->start != p->p_sigcode)
+ entry->start != p->p_p->ps_sigcode)
continue;
/*
@@ -287,7 +287,7 @@ uvm_coredump_walkmap(struct proc *p, void *iocookie,
}
if (!(entry->protection & VM_PROT_WRITE) &&
- entry->start != p->p_sigcode)
+ entry->start != p->p_p->ps_sigcode)
continue;
/*