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

Function setpgrp

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

Source from the content-addressed store, hash-verified

1434
1435 #[pyfunction]
1436 fn setpgrp(vm: &VirtualMachine) -> PyResult<()> {
1437 // setpgrp() is equivalent to setpgid(0, 0)
1438 unistd::setpgid(Pid::from_raw(0), Pid::from_raw(0)).map_err(|err| err.into_pyexception(vm))
1439 }
1440
1441 #[cfg(not(any(target_os = "wasi", target_os = "redox")))]
1442 #[pyfunction]

Callers

nothing calls this directly

Calls 2

setpgidFunction · 0.85
into_pyexceptionMethod · 0.45

Tested by

no test coverage detected