Skip to content

Commit

Permalink
sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pmundt committed Jun 19, 2007
1 parent fa490cf commit e227e8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh64/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e227e8f

Please sign in to comment.