diff options
author | John Högberg <[email protected]> | 2017-11-13 15:27:09 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-11-13 16:56:22 +0100 |
commit | b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a (patch) | |
tree | ee22a1b032e020c71e6598d073366c71af36e817 /erts/emulator/drivers/unix/unix_efile.c | |
parent | aa315e1cf1b79ab782e5b4c944595495ebf4e2f4 (diff) | |
download | otp-b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a.tar.gz otp-b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a.tar.bz2 otp-b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a.zip |
Remove invalid EINTR loop around close(2)
Retrying close(2) on anything other than HP-UX is likely to close
something entirely different. POSIX says that the state of the file
descriptor is unspecified, and Linux/BSD guarantee that it's closed
on return.
Diffstat (limited to 'erts/emulator/drivers/unix/unix_efile.c')
-rw-r--r-- | erts/emulator/drivers/unix/unix_efile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c index 3ff68a8859..e4fccd954b 100644 --- a/erts/emulator/drivers/unix/unix_efile.c +++ b/erts/emulator/drivers/unix/unix_efile.c @@ -463,7 +463,7 @@ efile_may_openfile(Efile_error* errInfo, char *name) { void efile_closefile(int fd) { - while((close(fd) < 0) && (errno == EINTR)); + close(fd); } int |