diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-06-18 23:41:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-06-18 23:41:32 -0400 |
commit | e227e8f3ba3bfb8e26fee783026c1425ba600037 (patch) | |
tree | 284f02179c29066349967a159ce1a9059cd13758 /arch/sh64/kernel/signal.c | |
parent | fa490cfd15d7ce0900097cc4e60cfd7a76381138 (diff) |
sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls.
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>
Diffstat (limited to 'arch/sh64/kernel/signal.c')
-rw-r--r-- | arch/sh64/kernel/signal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh64/kernel/signal.c b/arch/sh64/kernel/signal.c index c8525ade0564..0bb4a8f94276 100644 --- a/arch/sh64/kernel/signal.c +++ b/arch/sh64/kernel/signal.c | |||
@@ -640,6 +640,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, | |||
640 | if (regs->syscall_nr >= 0) { | 640 | if (regs->syscall_nr >= 0) { |
641 | /* If so, check system call restarting.. */ | 641 | /* If so, check system call restarting.. */ |
642 | switch (regs->regs[REG_RET]) { | 642 | switch (regs->regs[REG_RET]) { |
643 | case -ERESTART_RESTARTBLOCK: | ||
643 | case -ERESTARTNOHAND: | 644 | case -ERESTARTNOHAND: |
644 | regs->regs[REG_RET] = -EINTR; | 645 | regs->regs[REG_RET] = -EINTR; |
645 | break; | 646 | break; |