summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-12-08 01:06:36 +0000
committersef <sef@FreeBSD.org>1997-12-08 01:06:36 +0000
commit287c0e3604b769c59f576c3964642715079a76f4 (patch)
tree409e9c1a735c2dd89128df90141f54a93b1e8b3e /sys/miscfs/procfs/procfs_subr.c
parent2484645f8d9962470a0283fa60ae8e3162098cc2 (diff)
downloadFreeBSD-src-287c0e3604b769c59f576c3964642715079a76f4.zip
FreeBSD-src-287c0e3604b769c59f576c3964642715079a76f4.tar.gz
Use at_exit() to invoke procfs_exit() instead of calling it directly.
Note that an unload facility should be used to call rm_at_exit() (if procfs is being loaded as an LKM and is subsequently removed), but it was non-obvious how to do this in the VFS framework. Reviewed by: Julian Elischer
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r--sys/miscfs/procfs/procfs_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c
index b77489b..12dcf76 100644
--- a/sys/miscfs/procfs/procfs_subr.c
+++ b/sys/miscfs/procfs/procfs_subr.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_subr.c 8.6 (Berkeley) 5/14/95
*
- * $Id: procfs_subr.c,v 1.17 1997/08/02 14:32:18 bde Exp $
+ * $Id: procfs_subr.c,v 1.18 1997/12/06 04:11:12 sef Exp $
*/
#include <sys/param.h>
@@ -353,9 +353,10 @@ vfs_findname(nm, buf, buflen)
}
void
-procfs_exit(pid_t pid)
+procfs_exit(struct proc *p)
{
struct pfsnode *pfs;
+ pid_t pid = p->p_pid;
for (pfs = pfshead; pfs ; pfs = pfs->pfs_next) {
if (pfs->pfs_pid == pid)
OpenPOWER on IntegriCloud