Apply unsafe_op_in_unsafe_fn

This commit is contained in:
Eric Huss
2025-07-05 19:29:43 -07:00
parent b637a5fe83
commit 9d710a98a1

View File

@@ -36,7 +36,10 @@ mod imp {
// ALLOWED: For testing cargo itself only.
#[allow(clippy::disallowed_methods)]
if env::var("__CARGO_TEST_SETSID_PLEASE_DONT_USE_ELSEWHERE").is_ok() {
libc::setsid();
// SAFETY: I'm unaware of any safety requirements for this function.
unsafe {
libc::setsid();
}
}
Some(())
}