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

Function handle_wait_error

crates/stdlib/src/multiprocessing.rs:1124–1130  ·  view source on GitHub ↗
(vm: &VirtualMachine, saved_errno: Errno)

Source from the content-addressed store, hash-verified

1122 }
1123
1124 fn handle_wait_error(vm: &VirtualMachine, saved_errno: Errno) -> PyResult<bool> {
1125 match saved_errno {
1126 Errno::EAGAIN | Errno::ETIMEDOUT => Ok(false),
1127 Errno::EINTR => vm.check_signals().map(|_| false),
1128 _ => Err(os_error(vm, saved_errno)),
1129 }
1130 }
1131
1132 fn os_error(vm: &VirtualMachine, err: Errno) -> PyBaseExceptionRef {
1133 // _PyMp_SetError maps to PyErr_SetFromErrno

Callers 1

acquireMethod · 0.85

Calls 4

os_errorFunction · 0.85
check_signalsMethod · 0.80
ErrClass · 0.50
mapMethod · 0.45

Tested by

no test coverage detected