public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.15-rc4] Allow salinfo_decode to detect signals on read
@ 2005-12-02  2:40 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2005-12-02  2:40 UTC (permalink / raw)
  To: linux-ia64

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-02  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02  2:40 [patch 2.6.15-rc4] Allow salinfo_decode to detect signals on read Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox