kernel: syscall: send WouldBlock to retry messages

This is handled by the client library to re-send the request.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-11-23 20:04:37 +08:00
parent 693800ac9d
commit e3cb05baf5

View file

@ -15,7 +15,7 @@ fn retry_syscall(pid: PID, tid: TID) -> SysCallResult {
arch::process::Process::with_current_mut(|p| p.retry_instruction(tid))?;
do_yield(pid, tid)
} else {
Ok(xous_kernel::Result::Ok)
Ok(xous_kernel::Result::WouldBlock)
}
}