Skip to contentSkip to conversation

UML - More EINTR protection

PATCH New Jeff Dike 1 participant 1 message Sep 17, 2004 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 1/1 UML - More EINTR protection

This adds retrying on EINTR to a couple more places.

arch/um/kernel/helper.c +2 -2
Index: 2.6.9-rc2/arch/um/kernel/helper.c
===================================================================
@@ -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);