aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1998-07-27 22:47:17 +0000
committerAlexander Langer <alex@FreeBSD.org>1998-07-27 22:47:17 +0000
commitf35f7d0dfd407ad611e1ef381103a114368ad01d (patch)
treec08c2f900fd2777c684f332d518ab3dc8a31fa5c /sys/miscfs/procfs
parent292c7b258271a81ba98a517993a17e02c18f75e5 (diff)
Notes
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_vfsops.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs_vfsops.c b/sys/miscfs/procfs/procfs_vfsops.c
index b84ae7fbe1a3..ef4c4da94ec5 100644
--- a/sys/miscfs/procfs/procfs_vfsops.c
+++ b/sys/miscfs/procfs/procfs_vfsops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vfsops.c 8.7 (Berkeley) 5/10/95
*
- * $Id: procfs_vfsops.c,v 1.23 1998/07/25 15:52:44 alex Exp $
+ * $Id: procfs_vfsops.c,v 1.24 1998/07/27 01:07:01 alex Exp $
*/
/*
@@ -87,7 +87,7 @@ procfs_mount(mp, path, data, ndp, p)
return (EOPNOTSUPP);
if (mp->mnt_vfc->vfc_refcount == 1 && (error = at_exit(procfs_exit))) {
- printf("procfs: cannot register procfs_exit with at_exit -- error %d\n", error);
+ printf("procfs: cannot register procfs_exit with at_exit\n");
return(error);
}
@@ -118,9 +118,6 @@ procfs_unmount(mp, mntflags, p)
int error;
int flags = 0;
- if (mp->mnt_vfc->vfc_refcount == 1)
- rm_at_exit(procfs_exit);
-
if (mntflags & MNT_FORCE)
flags |= FORCECLOSE;
@@ -128,6 +125,9 @@ procfs_unmount(mp, mntflags, p)
if (error)
return (error);
+ if (mp->mnt_vfc->vfc_refcount == 1)
+ rm_at_exit(procfs_exit);
+
return (0);
}
@@ -182,6 +182,7 @@ static int
procfs_init(vfsp)
struct vfsconf *vfsp;
{
+
return (0);
}