Don't lock the proc lock to clear p_fd. p_fd isn't protected by the proc

lock.
This commit is contained in:
jhb 2002-10-18 17:42:28 +00:00
parent 277583f7f8
commit 22c558ff8c

View File

@ -1380,9 +1380,7 @@ fdfree(td)
if (*fpp)
(void) closef(*fpp, td);
}
PROC_LOCK(td->td_proc);
td->td_proc->p_fd = NULL;
PROC_UNLOCK(td->td_proc);
if (fdp->fd_nfiles > NDFILE)
FREE(fdp->fd_ofiles, M_FILEDESC);
if (fdp->fd_cdir)