[patch 7/7] uml: retry host close() on EINTR

From: Paolo 'Blaisorblade' Giarrusso
Date: Sat Sep 10 2005 - 13:06:19 EST


When calling close() on the host, we must retry the operation when we get
EINTR.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
---

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)

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/