From 9c03a8ae91e06e47f0c59996ef0e2300e231e101 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 24 Apr 2001 00:51:53 +0000 Subject: Change the pfind() and zpfind() functions to lock the process that they find before releasing the allproc lock and returning. Reviewed by: -smp, dfr, jake --- sys/fs/procfs/procfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/procfs/procfs.h') diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h index f000026..1c8e5e1 100644 --- a/sys/fs/procfs/procfs.h +++ b/sys/fs/procfs/procfs.h @@ -115,7 +115,7 @@ struct reg; struct fpreg; struct dbreg; -#define PFIND(pid) ((pid) ? pfind(pid) : &proc0) +#define PFIND(pid) (pfind(pid)) void procfs_exit __P((struct proc *)); int procfs_freevp __P((struct vnode *)); -- cgit v1.1