(signum: i32, vm: &VirtualMachine)
| 1169 | #[cfg(unix)] |
| 1170 | #[pyfunction] |
| 1171 | fn unregister(signum: i32, vm: &VirtualMachine) -> PyResult<bool> { |
| 1172 | check_signum(signum, vm)?; |
| 1173 | |
| 1174 | if let Some(old) = user_signals::clear_user_signal(signum as usize) { |
| 1175 | // Restore previous handler |
| 1176 | unsafe { |
| 1177 | libc::sigaction(signum, &old.previous, core::ptr::null_mut()); |
| 1178 | } |
| 1179 | Ok(true) |
| 1180 | } else { |
| 1181 | Ok(false) |
| 1182 | } |
| 1183 | } |
| 1184 | |
| 1185 | // Test functions for faulthandler testing |
| 1186 |
nothing calls this directly
no test coverage detected