Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268326AbUIQENF (ORCPT ); Fri, 17 Sep 2004 00:13:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268370AbUIQENF (ORCPT ); Fri, 17 Sep 2004 00:13:05 -0400 Received: from [12.177.129.25] ([12.177.129.25]:4292 "EHLO ccure.user-mode-linux.org") by vger.kernel.org with ESMTP id S268326AbUIQENB (ORCPT ); Fri, 17 Sep 2004 00:13:01 -0400 Message-Id: <200409170517.i8H5HU2J005387@ccure.user-mode-linux.org> X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.1-RC1 To: akpm@osdl.org cc: linux-kernel@vger.kernel.org Subject: [PATCH] UML - More EINTR protection Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 17 Sep 2004 01:17:30 -0400 From: Jeff Dike Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1074 Lines: 32 This adds retrying on EINTR to a couple more places. Signed-off-by: Jeff Dike 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/