[PATCH] uml: add some EINTR protection

Add some more uses of the CATCH_EINTR wrapper.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Jeff Dike
2006-07-10 04:45:15 -07:00
committed by Linus Torvalds
parent 108ffa8cbf
commit 9ead6feedd
2 changed files with 6 additions and 10 deletions

View File

@@ -18,6 +18,7 @@
#include "os.h"
#include "user.h"
#include "kern_util.h"
#include "user_util.h"
static void copy_stat(struct uml_stat *dst, struct stat64 *src)
{
@@ -42,10 +43,7 @@ int os_stat_fd(const int fd, struct uml_stat *ubuf)
struct stat64 sbuf;
int err;
do {
err = fstat64(fd, &sbuf);
} while((err < 0) && (errno == EINTR)) ;
CATCH_EINTR(err = fstat64(fd, &sbuf));
if(err < 0)
return -errno;