summaryrefslogtreecommitdiff
path: root/test/test_unistd.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r--test/test_unistd.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs
index 14826b9e..302c1cfa 100644
--- a/test/test_unistd.rs
+++ b/test/test_unistd.rs
@@ -19,8 +19,7 @@ fn test_fork_and_waitpid() {
let m = ::FORK_MTX.lock().expect("Mutex got poisoned by another test");
// Safe: Child only calls `_exit`, which is signal-safe
- let pid = fork();
- match pid {
+ match fork() {
Ok(Child) => unsafe { _exit(0) },
Ok(Parent { child }) => {
// assert that child was created and pid > 0