[patch 2.6.15-rc4] Allow salinfo_decode to detect signals on read

From: Keith Owens <kaos_at_sgi.com>
Date: 2005-12-02 13:40:15
Return -EINTR instead of -ERESTARTSYS when signals are delivered during
a blocked read of /proc/sal/*/event.  This allows salinfo_decode to
detect signals when it is blocked on a read of those files.

Signed-off-by: Keith Owens <kaos@sgi.com>

Index: linux/arch/ia64/kernel/salinfo.c
===================================================================
--- linux.orig/arch/ia64/kernel/salinfo.c	2005-12-02 13:34:44.753350991 +1100
+++ linux/arch/ia64/kernel/salinfo.c	2005-12-02 13:35:12.055229613 +1100
@@ -293,7 +293,7 @@ retry:
 		if (file->f_flags & O_NONBLOCK)
 			return -EAGAIN;
 		if (down_interruptible(&data->sem))
-			return -ERESTARTSYS;
+			return -EINTR;
 	}
 
 	n = data->cpu_check;

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Dec 02 13:40:55 2005

This archive was generated by hypermail 2.1.8 : 2005-12-02 13:41:02 EST