diff options
author | Daniel Black <daniel@linux.ibm.com> | 2019-02-06 08:35:48 +1100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-02-06 15:16:10 +0400 |
commit | e33daef4466c9d901074c474d1ef65b67ba16eee (patch) | |
tree | 58398da1ebe27867305eb0072757786fe9e4faa5 /mysys | |
parent | 7293ce0ee81f05b1ec3ac9ddcc88bfbee4030e55 (diff) | |
download | mariadb-git-e33daef4466c9d901074c474d1ef65b67ba16eee.tar.gz |
Don't retry on close
According to close(2) "Retrying the close() after a failure return is
the wrong thing to do"
Corrects 5c81cb880a054f34803e2821489533274ebf6c4e in MDEV-15635
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_fopen.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mysys/my_fopen.c b/mysys/my_fopen.c index 59baeaec744..fbd84049700 100644 --- a/mysys/my_fopen.c +++ b/mysys/my_fopen.c @@ -171,10 +171,7 @@ int my_fclose(FILE *fd, myf MyFlags) my_file_info[file].type= UNOPEN; } #ifndef _WIN32 - do - { - err= fclose(fd); - } while (err == -1 && errno == EINTR); + err= fclose(fd); #else err= my_win_fclose(fd); #endif |