Skip to content

Commit 9d710a9

Browse files
committed
Apply unsafe_op_in_unsafe_fn
1 parent b637a5f commit 9d710a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cargo/util/job.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ mod imp {
3636
// ALLOWED: For testing cargo itself only.
3737
#[allow(clippy::disallowed_methods)]
3838
if env::var("__CARGO_TEST_SETSID_PLEASE_DONT_USE_ELSEWHERE").is_ok() {
39-
libc::setsid();
39+
// SAFETY: I'm unaware of any safety requirements for this function.
40+
unsafe {
41+
libc::setsid();
42+
}
4043
}
4144
Some(())
4245
}

0 commit comments

Comments
 (0)