From e3cb05baf52d4d44acc80cc8d5beaf097546a172 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 23 Nov 2020 20:04:37 +0800 Subject: [PATCH] kernel: syscall: send WouldBlock to retry messages This is handled by the client library to re-send the request. Signed-off-by: Sean Cross --- kernel/src/syscall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/syscall.rs b/kernel/src/syscall.rs index 04055b32c..4f4ae472d 100644 --- a/kernel/src/syscall.rs +++ b/kernel/src/syscall.rs @@ -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) } }