Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f70395 authored by Keith Owens's avatar Keith Owens Committed by Tony Luck
Browse files

[IA64] Allow salinfo_decode to detect signals on read



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: default avatarKeith Owens <kaos@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 885da19e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ salinfo_event_read(struct file *file, char __user *buffer, size_t count, loff_t
		if (file->f_flags & O_NONBLOCK)
			return -EAGAIN;
		if (down_interruptible(&data->sem))
			return -ERESTARTSYS;
			return -EINTR;
	}

	n = data->cpu_check;