Skip to content

Commit

Permalink
Added other wait
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Oct 13, 2018
1 parent ea33d33 commit f917ebf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/sys/test_ptrace.rs
Expand Up @@ -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));
}
Expand Down

0 comments on commit f917ebf

Please sign in to comment.