diff mbox

ERESTART* seen by userland

Message ID 20090120.134350.89916914.kkojima@rr.iij4u.or.jp (mailing list archive)
State Superseded
Delegated to: Paul Mundt
Headers show

Commit Message

Kaz Kojima Jan. 20, 2009, 4:43 a.m. UTC
Paul Mundt <lethal@linux-sh.org> wrote:
>> It seems that some syscalls return with ERESTART* errno when
>> they should return EINTR in the recent SH kernels.
>> Has anybody experienced this?
>> 
> I haven't hit this personally, but the only logical explanation I can
> think of for this is the T-bit setting in the syscall restart code. I
> suppose I will have to find another bit to use. Can you confirm if
> getting rid of regs->sr T-bit manipulation makes this go away?

I've confirmed that my testcases are fixed with removing the if line
just before handle_syscall_restart call in do_signal:


Regards,
	kaz
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- GIT/linux-2.6/arch/sh/kernel/signal_32.c	2008-12-30 09:31:12.000000000 +0900
+++ linux-2.6.29-rc1/arch/sh/kernel/signal_32.c	2009-01-20 12:48:40.000000000 +0900
@@ -589,8 +589,7 @@  static void do_signal(struct pt_regs *re
 
 	signr = get_signal_to_deliver(&info, &ka, regs, NULL);
 	if (signr > 0) {
-		if (regs->sr & 1)
-			handle_syscall_restart(save_r0, regs, &ka.sa);
+		handle_syscall_restart(save_r0, regs, &ka.sa);
 
 		/* Whee!  Actually deliver the signal.  */
 		if (handle_signal(signr, &ka, &info, oldset,