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

Function getpgid

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

Source from the content-addressed store, hash-verified

1384
1385 #[pyfunction]
1386 fn getpgid(pid: u32, vm: &VirtualMachine) -> PyResult {
1387 let pgid =
1388 unistd::getpgid(Some(Pid::from_raw(pid as i32))).map_err(|e| e.into_pyexception(vm))?;
1389 Ok(vm.new_pyobj(pgid.as_raw()))
1390 }
1391
1392 #[pyfunction]
1393 fn getpgrp(vm: &VirtualMachine) -> PyObjectRef {

Callers

nothing calls this directly

Calls 4

new_pyobjMethod · 0.80
SomeClass · 0.50
into_pyexceptionMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected