summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-10-18 17:45:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-10-18 17:45:41 +0000
commit62220473009419055cc8bb54c279c2ffda7de9d4 (patch)
treea0e2e77e78344d168fe1ba5d7b5fa189458b5a43 /sys/kern/kern_fork.c
parent6d345e2a4586c5d70fcb0d19280533256524cadd (diff)
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 1efb9081df7a..2f93823c115e 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -257,10 +257,8 @@ fork1(td, flags, pages, procp)
if (flags & RFCFDG) {
struct filedesc *fdtmp;
fdtmp = fdinit(td); /* XXXKSE */
- PROC_LOCK(p1);
fdfree(td); /* XXXKSE */
p1->p_fd = fdtmp;
- PROC_UNLOCK(p1);
}
/*
@@ -273,10 +271,8 @@ fork1(td, flags, pages, procp)
newfd = fdcopy(td);
FILEDESC_UNLOCK(p1->p_fd);
- PROC_LOCK(p1);
fdfree(td);
p1->p_fd = newfd;
- PROC_UNLOCK(p1);
} else
FILEDESC_UNLOCK(p1->p_fd);
}