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

lock.
This commit is contained in:
John Baldwin 2002-10-18 17:42:28 +00:00
parent b86ec922be
commit 4562d72638

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)