From 34f88c60fd83afa09bf8055c2141471f66759a8e Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Thu, 16 Sep 2004 22:14:08 -0700 Subject: [PATCH] [PATCH] uml: more EINTR protection This adds retrying on EINTR to a couple more places. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/um/kernel/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/kernel/helper.c b/arch/um/kernel/helper.c index 1f166e9a2b2bd..0e3d409d9b3f6 100644 --- a/arch/um/kernel/helper.c +++ b/arch/um/kernel/helper.c @@ -132,7 +132,7 @@ int run_helper_thread(int (*proc)(void *), void *arg, unsigned int flags, return(-errno); } if(stack_out == NULL){ - pid = waitpid(pid, &status, 0); + CATCH_EINTR(pid = waitpid(pid, &status, 0)); if(pid < 0){ printk("run_helper_thread - wait failed, errno = %d\n", errno); @@ -151,7 +151,7 @@ int helper_wait(int pid, int block) { int ret; - ret = waitpid(pid, NULL, WNOHANG); + CATCH_EINTR(ret = waitpid(pid, NULL, WNOHANG)); if(ret < 0){ printk("helper_wait : waitpid failed, errno = %d\n", errno); return(-errno); -- 2.53.0