summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/procfs/procfs_status.c4
-rw-r--r--sys/miscfs/procfs/procfs_status.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_status.c b/sys/fs/procfs/procfs_status.c
index 7b2256c..40e3fbe 100644
--- a/sys/fs/procfs/procfs_status.c
+++ b/sys/fs/procfs/procfs_status.c
@@ -78,9 +78,9 @@ procfs_dostatus(curp, p, pfs, uio)
return (EOPNOTSUPP);
pid = p->p_pid;
- PROCTREE_LOCK(PT_SHARED);
+ PROC_LOCK(p);
ppid = p->p_pptr ? p->p_pptr->p_pid : 0;
- PROCTREE_LOCK(PT_RELEASE);
+ PROC_UNLOCK(p);
pgid = p->p_pgrp->pg_id;
sess = p->p_pgrp->pg_session;
sid = sess->s_leader ? sess->s_leader->p_pid : 0;
diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c
index 7b2256c..40e3fbe 100644
--- a/sys/miscfs/procfs/procfs_status.c
+++ b/sys/miscfs/procfs/procfs_status.c
@@ -78,9 +78,9 @@ procfs_dostatus(curp, p, pfs, uio)
return (EOPNOTSUPP);
pid = p->p_pid;
- PROCTREE_LOCK(PT_SHARED);
+ PROC_LOCK(p);
ppid = p->p_pptr ? p->p_pptr->p_pid : 0;
- PROCTREE_LOCK(PT_RELEASE);
+ PROC_UNLOCK(p);
pgid = p->p_pgrp->pg_id;
sess = p->p_pgrp->pg_session;
sid = sess->s_leader ? sess->s_leader->p_pid : 0;
OpenPOWER on IntegriCloud