diff options
author | Erlang/OTP <[email protected]> | 2017-12-15 16:03:28 +0100 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2017-12-15 16:03:28 +0100 |
commit | 68333f8966cf79630d96edb44bbbaed7a7829186 (patch) | |
tree | 35d7c6ac5096d5984f127ffa84e5e98593f249de | |
parent | c71fa4134c13e56e09c52976f2d7d4264cc1024c (diff) | |
parent | b9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a (diff) | |
download | otp-68333f8966cf79630d96edb44bbbaed7a7829186.tar.gz otp-68333f8966cf79630d96edb44bbbaed7a7829186.tar.bz2 otp-68333f8966cf79630d96edb44bbbaed7a7829186.zip |
Merge branch 'john/erts/fix-close-eintr/OTP-14775' into maint-19
* john/erts/fix-close-eintr/OTP-14775:
Remove invalid EINTR loop around close(2)
-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 0acc2432a7..82266ee736 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 |