We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12facb0 commit 21736dcCopy full SHA for 21736dc
test/sys/test_wait.rs
@@ -7,7 +7,7 @@ use libc::exit;
7
#[test]
8
fn test_wait_signal() {
9
match fork() {
10
- Ok(Child) => loop { /* Wait for signal */ },
+ Ok(Child) => pause().unwrap(),
11
Ok(Parent(child_pid)) => {
12
kill(child_pid, SIGKILL).ok().expect("Error: Kill Failed");
13
assert_eq!(waitpid(child_pid, None), Ok(WaitStatus::Signaled(child_pid, SIGKILL, false)));
0 commit comments