File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ pub(crate) mod _signal {
283
283
/// Similar to `PyErr_SetInterruptEx` in CPython
284
284
///
285
285
/// Missing signal handler for the given signal number is silently ignored.
286
+ #[ allow( dead_code) ]
286
287
pub fn set_interrupt_ex ( signum : i32 , vm : & VirtualMachine ) -> PyResult < ( ) > {
287
288
assert_in_range ( signum, vm) ?;
288
289
Original file line number Diff line number Diff line change @@ -304,6 +304,7 @@ pub(crate) mod _thread {
304
304
vm. state . thread_count . fetch_sub ( 1 ) ;
305
305
}
306
306
307
+ #[ cfg( not( target_arch = "wasm32" ) ) ]
307
308
#[ pyfunction]
308
309
fn interrupt_main ( signum : OptionalArg < i32 > , vm : & VirtualMachine ) -> PyResult < ( ) > {
309
310
crate :: stdlib:: signal:: _signal:: set_interrupt_ex ( signum. unwrap_or ( libc:: SIGINT ) , vm)
You can’t perform that action at this time.
0 commit comments