Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closef(9): Assert no ERESTART from struct fileops::fo_close.
This cannot possibly work so make sure we flag it early. Currently the sys_close wrapper will neuter ERESTART by mapping it to EINTR, but let's catch this mistake earlier where we have better diagnostic information available like what the fo_close function is. (Haven't seen the printf fire in the >decade since I added it, so I think this KASSERT is unlikely.)
- Loading branch information