Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33dc0ad7 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

Correct auto-restart of syscalls via restartblock



This would for example be poll(2)

Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 33874cb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}