restart_syscall is a helper function that restarts a system call.
restart_syscall returns the return value of the system call it restarts.
None.