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

Function setpgid

crates/vm/src/stdlib/posix.rs:1430–1433  ·  view source on GitHub ↗
(pid: u32, pgid: u32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1428
1429 #[pyfunction]
1430 fn setpgid(pid: u32, pgid: u32, vm: &VirtualMachine) -> PyResult<()> {
1431 unistd::setpgid(Pid::from_raw(pid as i32), Pid::from_raw(pgid as i32))
1432 .map_err(|err| err.into_pyexception(vm))
1433 }
1434
1435 #[pyfunction]
1436 fn setpgrp(vm: &VirtualMachine) -> PyResult<()> {

Callers 2

exec_innerFunction · 0.85
setpgrpFunction · 0.85

Calls 1

into_pyexceptionMethod · 0.45

Tested by

no test coverage detected