fd: assert dropped filedesc lock in fdcloseexec

This commit is contained in:
Mateusz Guzik 2016-05-08 03:26:12 +00:00
parent de2413b95e
commit 0cfe1a1fec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299227

View File

@ -2307,7 +2307,7 @@ fdcloseexec(struct thread *td)
FILEDESC_XLOCK(fdp);
fdfree(fdp, i);
(void) closefp(fdp, i, fp, td, 0);
/* closefp() drops the FILEDESC lock. */
FILEDESC_UNLOCK_ASSERT(fdp);
}
}
}