aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2017-12-15 16:03:28 +0100
committerErlang/OTP <[email protected]>2017-12-15 16:03:28 +0100
commit68333f8966cf79630d96edb44bbbaed7a7829186 (patch)
tree35d7c6ac5096d5984f127ffa84e5e98593f249de
parentc71fa4134c13e56e09c52976f2d7d4264cc1024c (diff)
parentb9c13d5cba56d267bfe7b7c9bc3e4f681a53e33a (diff)
downloadotp-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.c2
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