Don't FILEDESC_LOCK around calls to falloc().

This commit is contained in:
alfred 2002-04-22 20:09:11 +00:00
parent ab6dc20b52
commit d4c507ea29

View File

@ -1528,9 +1528,7 @@ fdcheckstd(td)
if (fdp->fd_ofiles[i] != NULL)
continue;
if (devnull < 0) {
FILEDESC_LOCK(fdp);
error = falloc(td, &fp, &fd);
FILEDESC_UNLOCK(fdp);
if (error != 0)
break;
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, "/dev/null",