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 b637a5f commit 9d710a9Copy full SHA for 9d710a9
src/cargo/util/job.rs
@@ -36,7 +36,10 @@ mod imp {
36
// ALLOWED: For testing cargo itself only.
37
#[allow(clippy::disallowed_methods)]
38
if env::var("__CARGO_TEST_SETSID_PLEASE_DONT_USE_ELSEWHERE").is_ok() {
39
- libc::setsid();
+ // SAFETY: I'm unaware of any safety requirements for this function.
40
+ unsafe {
41
+ libc::setsid();
42
+ }
43
}
44
Some(())
45
0 commit comments