(vm: &VirtualMachine)
| 1185 | |
| 1186 | #[pyfunction] |
| 1187 | fn pipe(vm: &VirtualMachine) -> PyResult<(OwnedFd, OwnedFd)> { |
| 1188 | use nix::unistd::pipe; |
| 1189 | let (rfd, wfd) = pipe().map_err(|err| err.into_pyexception(vm))?; |
| 1190 | set_inheritable(rfd.as_fd(), false, vm)?; |
| 1191 | set_inheritable(wfd.as_fd(), false, vm)?; |
| 1192 | Ok((rfd, wfd)) |
| 1193 | } |
| 1194 | |
| 1195 | // cfg from nix |
| 1196 | #[cfg(any( |
nothing calls this directly
no test coverage detected