aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/unix/run_erl.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-11-27 20:12:48 +0100
committerSverker Eriksson <[email protected]>2017-11-27 20:12:48 +0100
commita81768123c15dfe3bdc647ab8edb4fc4c3509819 (patch)
treeeaa48e36f4e5bf5bf5e993f26887e5d8d1e6608a /erts/etc/unix/run_erl.c
parentb0f407e20502f386b6c974f38a755417aaacf6a4 (diff)
parent2de02457c36d594f953efa0003186c8d5bbe7b41 (diff)
downloadotp-a81768123c15dfe3bdc647ab8edb4fc4c3509819.tar.gz
otp-a81768123c15dfe3bdc647ab8edb4fc4c3509819.tar.bz2
otp-a81768123c15dfe3bdc647ab8edb4fc4c3509819.zip
Merge branch 'maint'
Diffstat (limited to 'erts/etc/unix/run_erl.c')
-rw-r--r--erts/etc/unix/run_erl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/erts/etc/unix/run_erl.c b/erts/etc/unix/run_erl.c
index f928163705..725343d701 100644
--- a/erts/etc/unix/run_erl.c
+++ b/erts/etc/unix/run_erl.c
@@ -1346,11 +1346,8 @@ static int sf_open(const char *path, int type, mode_t mode) {
}
static int sf_close(int fd) {
- int res = 0;
-
- do { res = close(fd); } while(res < 0 && errno == EINTR);
-
- return res;
+ /* "close() should not be retried after an EINTR" */
+ return close(fd);
}
/* Extract any control sequences that are ment only for run_erl