dect
/
linux-2.6
Archived
13
0
Fork 0

Correct auto-restart of syscalls via restartblock

This would for example be poll(2)

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
Jesper Nilsson 2011-03-21 16:07:05 +01:00
parent 33874cb8cd
commit 33dc0ad78a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}