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
This commit is contained in:
parent
7293ce0ee8
commit
e33daef446
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user