diff options
author | Erlang/OTP <[email protected]> | 2017-11-17 14:19:08 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2017-11-17 14:19:08 +0100 |
commit | e4fbc047b039dd80d331d22c29f02b29387090ad (patch) | |
tree | 2ea54e2961a840ff0b41192f853b652cf62fba6d /erts/emulator/drivers/unix | |
parent | 84f29ab803e8f36ef058a47f4c2b224f4dd58220 (diff) | |
parent | b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a (diff) | |
download | otp-e4fbc047b039dd80d331d22c29f02b29387090ad.tar.gz otp-e4fbc047b039dd80d331d22c29f02b29387090ad.tar.bz2 otp-e4fbc047b039dd80d331d22c29f02b29387090ad.zip |
Merge branch 'john/erts/fix-close-eintr/OTP-14775' into maint-20
* john/erts/fix-close-eintr/OTP-14775:
Remove invalid EINTR loop around close(2)
Diffstat (limited to 'erts/emulator/drivers/unix')
-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 f8341f788a..33e4d75ef7 100644 --- a/erts/emulator/drivers/unix/unix_efile.c +++ b/erts/emulator/drivers/unix/unix_efile.c @@ -466,7 +466,7 @@ efile_may_openfile(Efile_error* errInfo, char *name) { void efile_closefile(int fd) { - while((close(fd) < 0) && (errno == EINTR)); + close(fd); } int |