summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2015-05-22 11:03:51 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2015-05-22 11:03:51 +0000
commit312827253bf9c788f7e52a29a04c8d268c06145d (patch)
treeb51401c0766e0bff9ee630e2735a4636eadd61a2
parent1217b24e5185ec0bd2d42173dd713a5f962308e9 (diff)
Notes
-rw-r--r--sys/fs/procfs/procfs_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c
index dc267f64073e..1437644d5fa3 100644
--- a/sys/fs/procfs/procfs_ctl.c
+++ b/sys/fs/procfs/procfs_ctl.c
@@ -143,8 +143,8 @@ procfs_control(struct thread *td, struct proc *p, int op)
p->p_flag |= P_TRACED;
faultin(p);
p->p_xstat = 0; /* XXX ? */
+ p->p_oppid = p->p_pptr->p_pid;
if (p->p_pptr != td->td_proc) {
- p->p_oppid = p->p_pptr->p_pid;
proc_reparent(p, td->td_proc);
}
kern_psignal(p, SIGSTOP);