From: Paolo 'B. G. <bla...@ya...> - 2005-09-10 18:04:42
|
When calling close() on the host, we must retry the operation when we get EINTR. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <bla...@ya...> --- arch/um/os-Linux/file.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c @@ -17,6 +17,7 @@ #include <sys/uio.h> #include "os.h" #include "user.h" +#include "user_util.h" #include "kern_util.h" static void copy_stat(struct uml_stat *dst, struct stat64 *src) @@ -300,7 +301,7 @@ int os_connect_socket(char *name) void os_close_file(int fd) { - close(fd); + CATCH_EINTR(close(fd)); } int os_seek_file(int fd, __u64 offset) -- |