summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-21 16:33:13 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-04-21 16:33:13 +0000
commit2d603aa8e36e73bc8fd805efa3e9b5ae53796bcd (patch)
treeb5609e7733f3b2af7b071c0897a9dd55f464db2b
parentfdb61d2239158c1a8377dbebba7b0bd6dbba60b2 (diff)
see if there is any meaning under curproc before using &proc0 in vfs_syncwait(); from art@
-rw-r--r--sys/kern/vfs_subr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 9a362e7f4bb..4b0c6178cbf 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.43 1999/12/05 07:54:44 art Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.44 2000/04/21 16:33:12 mickey Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -1781,8 +1781,10 @@ vfs_syncwait(verbose)
{
register struct buf *bp;
int iter, nbusy, dcount, s;
+ struct proc *p;
- sys_sync(&proc0, (void *)0, (register_t *)0);
+ p = curproc? curproc : &proc0;
+ sys_sync(p, (void *)0, (register_t *)0);
/* Wait for sync to finish. */
dcount = 10000;