* [PATCH] UML - More EINTR protection
@ 2004-09-17 5:17 Jeff Dike
0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2004-09-17 5:17 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
This adds retrying on EINTR to a couple more places.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Index: 2.6.9-rc2/arch/um/kernel/helper.c
===================================================================
--- 2.6.9-rc2.orig/arch/um/kernel/helper.c 2004-09-16 22:59:06.000000000 -0400
+++ 2.6.9-rc2/arch/um/kernel/helper.c 2004-09-16 23:24:29.000000000 -0400
@@ -132,7 +132,7 @@
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 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-17 4:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 5:17 [PATCH] UML - More EINTR protection Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®