POSIX is unclear what state a file descriptor is in after a signal is delivered in the middle of close. On Linux, the file is closed even if it returns -1 with errno=EINTR. As such, do not use errno at all when closing files. PiperOrigin-RevId: 462638735 Change-Id: Ie73da1f3c83b1099bef146e1ea32e9a4818597cfpull/1231/head
parent
2c489bb5f0
commit
c1deed2f44
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue