mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
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>
This commit is contained in:
parent
fa490cfd15
commit
e227e8f3ba
1 changed files with 1 additions and 0 deletions
|
@ -640,6 +640,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
|
||||||
if (regs->syscall_nr >= 0) {
|
if (regs->syscall_nr >= 0) {
|
||||||
/* If so, check system call restarting.. */
|
/* If so, check system call restarting.. */
|
||||||
switch (regs->regs[REG_RET]) {
|
switch (regs->regs[REG_RET]) {
|
||||||
|
case -ERESTART_RESTARTBLOCK:
|
||||||
case -ERESTARTNOHAND:
|
case -ERESTARTNOHAND:
|
||||||
regs->regs[REG_RET] = -EINTR;
|
regs->regs[REG_RET] = -EINTR;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue