MCPcopy Index your code
hub / github.com/RustPython/RustPython / setsid

Function setsid

crates/vm/src/stdlib/posix.rs:1443–1447  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1441 #[cfg(not(any(target_os = "wasi", target_os = "redox")))]
1442 #[pyfunction]
1443 fn setsid(vm: &VirtualMachine) -> PyResult<()> {
1444 unistd::setsid()
1445 .map(|_ok| ())
1446 .map_err(|err| err.into_pyexception(vm))
1447 }
1448
1449 #[cfg(not(any(target_os = "wasi", target_os = "redox")))]
1450 #[pyfunction]

Callers 1

exec_innerFunction · 0.85

Calls 2

mapMethod · 0.45
into_pyexceptionMethod · 0.45

Tested by

no test coverage detected