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 7128f15 commit f793d5fCopy full SHA for f793d5f
test/test_unistd.rs
@@ -19,8 +19,7 @@ fn test_fork_and_waitpid() {
19
let m = ::FORK_MTX.lock().expect("Mutex got poisoned by another test");
20
21
// Safe: Child only calls `_exit`, which is signal-safe
22
- let pid = fork();
23
- match pid {
+ match fork() {
24
Ok(Child) => unsafe { _exit(0) },
25
Ok(Parent { child }) => {
26
// assert that child was created and pid > 0
0 commit comments