diff options
author | Tor Egge <tegge@FreeBSD.org> | 1998-05-17 19:38:55 +0000 |
---|---|---|
committer | Tor Egge <tegge@FreeBSD.org> | 1998-05-17 19:38:55 +0000 |
commit | cb87a87c1673fca2b5d023bffc2d194cabd7f0c4 (patch) | |
tree | 0a21550c0e5c2461593f36d3d9d75f5368956999 /sys/kern/vfs_export.c | |
parent | 5931a9c24e798d31c4389671b8c8431911b18c5d (diff) | |
download | src-cb87a87c1673fca2b5d023bffc2d194cabd7f0c4.tar.gz src-cb87a87c1673fca2b5d023bffc2d194cabd7f0c4.zip |
Supply the correct process argument to dounmount when possible.
Notes
Notes:
svn path=/head/; revision=36126
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r-- | sys/kern/vfs_export.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 5e6386e052b9..7edf44ad320c 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.151 1998/04/18 06:26:16 peter Exp $ + * $Id: vfs_subr.c,v 1.152 1998/04/19 23:32:03 julian Exp $ */ /* @@ -2149,9 +2149,13 @@ void vfs_unmountall() { struct mount *mp, *nmp; - struct proc *p = initproc; /* XXX XXX should this be proc0? */ + struct proc *p; int error; + if (curproc != NULL) + p = curproc; + else + p = initproc; /* XXX XXX should this be proc0? */ /* * Since this only runs when rebooting, it is not interlocked. */ |