Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore errno after closing failed FD
Ref: #440 `close(fd)` resets `errno`, so when we return with a failure, the original error cause is lost.
- Loading branch information