From f917ebf1c77d973950eabaf0e56eedb5007c5187 Mon Sep 17 00:00:00 2001 From: xd009642 Date: Sat, 13 Oct 2018 11:43:32 +0100 Subject: [PATCH] Added other wait --- test/sys/test_ptrace.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/sys/test_ptrace.rs b/test/sys/test_ptrace.rs index 0a2b660ce5..9b5f5e34b4 100644 --- a/test/sys/test_ptrace.rs +++ b/test/sys/test_ptrace.rs @@ -94,6 +94,7 @@ fn test_ptrace_cont() { // tracee may not be killed but remain as a zombie process // affecting other wait based tests. Add an extra kill just // to make sure there are no zombies. + let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); while ptrace::cont(child, Some(Signal::SIGKILL)).is_ok() { let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); }