sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jun 2007 03:41:32 +0000 (12:41 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 19 Jun 2007 03:41:32 +0000 (12:41 +0900)
The current implementation only handles -ERESTARTNOHAND, whereas we
also need to handle -ERESTART_RESTARTBLOCK in the handle_signal()
case for restartable system calls. Follows the sh change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh64/kernel/signal.c

index c8525ade0564bfcd88093b9ff9a85d2363be144d..0bb4a8f94276ea80c1d7b3731d3c2ce08c13816e 100644 (file)
@@ -640,6 +640,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
        if (regs->syscall_nr >= 0) {
                /* If so, check system call restarting.. */
                switch (regs->regs[REG_RET]) {
+                       case -ERESTART_RESTARTBLOCK:
                        case -ERESTARTNOHAND:
                                regs->regs[REG_RET] = -EINTR;
                                break;