We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c4ee0d commit e0666e6Copy full SHA for e0666e6
std/src/sys/pal/unix/linux/pidfd/tests.rs
@@ -45,8 +45,8 @@ fn test_command_pidfd() {
45
.expect_err("pidfd should not have been created");
46
47
// exercise the fork/exec path since the earlier attempts may have used pidfd_spawnp()
48
- let mut child =
49
- unsafe { Command::new("false").pre_exec(|| Ok(())) }.create_pidfd(true).spawn().unwrap();
+ let mut cmd = Command::new("false");
+ let mut child = unsafe { cmd.pre_exec(|| Ok(())) }.create_pidfd(true).spawn().unwrap();
50
51
assert!(child.id() > 0 && child.id() < -1i32 as u32);
52
0 commit comments