Commit e33daef4 authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

Don't retry on close

According to close(2) "Retrying the close() after a failure return is
the wrong thing to do"

Corrects 5c81cb88 in MDEV-15635
parent 7293ce0e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment