Skip to content

Commit e33daef

Browse files
grooverdansvoj
authored andcommitted
Don't retry on close
According to close(2) "Retrying the close() after a failure return is the wrong thing to do" Corrects 5c81cb8 in MDEV-15635
1 parent 7293ce0 commit e33daef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mysys/my_fopen.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ int my_fclose(FILE *fd, myf MyFlags)
171171
my_file_info[file].type= UNOPEN;
172172
}
173173
#ifndef _WIN32
174-
do
175-
{
176-
err= fclose(fd);
177-
} while (err == -1 && errno == EINTR);
174+
err= fclose(fd);
178175
#else
179176
err= my_win_fclose(fd);
180177
#endif

0 commit comments

Comments
 (0)