mirror of
https://github.com/rust-lang/cargo.git
synced 2026-01-25 04:16:45 +00:00
Apply unsafe_op_in_unsafe_fn
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user