Skip to content

Commit

Permalink
Correct auto-restart of syscalls via restartblock
Browse files Browse the repository at this point in the history
This would for example be poll(2)

Signed-off-by: Jesper Nilsson <[email protected]>
  • Loading branch information
Jesper Nilsson committed Mar 21, 2011
1 parent 33874cb commit 33dc0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/cris/arch-v10/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs)
RESTART_CRIS_SYS(regs);
}
if (regs->r10 == -ERESTART_RESTARTBLOCK) {
regs->r10 = __NR_restart_syscall;
regs->r9 = __NR_restart_syscall;
regs->irp -= 2;
}
}
Expand Down

0 comments on commit 33dc0ad

Please sign in to comment.