From e01d397dc1291157036b1a451c7282fbe4c0773d Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 14 May 2018 20:34:47 -0600 Subject: [PATCH] Return ECHILD if child process does not exist before blocking on it --- src/syscall/process.rs | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/src/syscall/process.rs b/src/syscall/process.rs index 21a259a..227853a 100644 --- a/src/syscall/process.rs +++ b/src/syscall/process.rs @@ -1265,6 +1265,24 @@ pub fn waitpid(pid: ContextId, status_ptr: usize, flags: usize) -> Result Result