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:
Daniel Black 2019-02-06 08:35:48 +11:00 committed by Sergey Vojtovich
parent 7293ce0ee8
commit e33daef446

View File

@ -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