(mut funcs: Vec<PyObjectRef>, reversed: bool, vm: &VirtualMachine)
| 745 | } |
| 746 | |
| 747 | fn run_at_forkers(mut funcs: Vec<PyObjectRef>, reversed: bool, vm: &VirtualMachine) { |
| 748 | if !funcs.is_empty() { |
| 749 | if reversed { |
| 750 | funcs.reverse(); |
| 751 | } |
| 752 | for func in funcs { |
| 753 | if let Err(e) = func.call((), vm) { |
| 754 | let exit = e.fast_isinstance(vm.ctx.exceptions.system_exit); |
| 755 | vm.run_unraisable(e, Some("Exception ignored in".to_owned()), func); |
| 756 | if exit { |
| 757 | // Do nothing! |
| 758 | } |
| 759 | } |
| 760 | } |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | fn py_os_before_fork(vm: &VirtualMachine) { |
| 765 | let before_forkers: Vec<PyObjectRef> = vm.state.before_forkers.lock().clone(); |
no test coverage detected