(pid: u32, vm: &VirtualMachine)
| 1397 | #[cfg(not(target_os = "redox"))] |
| 1398 | #[pyfunction] |
| 1399 | fn getsid(pid: u32, vm: &VirtualMachine) -> PyResult { |
| 1400 | let sid = |
| 1401 | unistd::getsid(Some(Pid::from_raw(pid as i32))).map_err(|e| e.into_pyexception(vm))?; |
| 1402 | Ok(vm.new_pyobj(sid.as_raw())) |
| 1403 | } |
| 1404 | |
| 1405 | #[pyfunction] |
| 1406 | fn getuid(vm: &VirtualMachine) -> PyObjectRef { |
no test coverage detected