summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-03-03 11:31:44 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-03-03 11:31:44 +0000
commit84302ed6bdbf915dcfe0287bb7348a6d17e00d1a (patch)
tree7529e343517e1b5fbc5cfcb6661877f009fdeeb7 /sys/kern/vfs_syscalls.c
parent64cf4e7639473a82a63723b0c5e0cfc5c25b83cc (diff)
Use LIST_ macros instead of internal field names to walk the allproc list.
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index caec7dbdf3f..0c0fd129028 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.62 2000/02/07 04:55:19 assar Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.63 2000/03/03 11:31:43 art Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -336,7 +336,11 @@ checkdirs(olddp)
return;
if (VFS_ROOT(olddp->v_mountedhere, &newdp))
panic("mount: lost mount");
- for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
+ for (p = LIST_FIRST(&allproc); p != 0; p = LIST_NEXT(p, p_list)) {
+ /*
+ * XXX - we have a race with fork here. We should probably
+ * check if the process is SIDL before we fiddle with it.
+ */
fdp = p->p_fd;
if (fdp->fd_cdir == olddp) {
vrele(fdp->fd_cdir);