We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SIGINT
1 parent 2ff80e8 commit 7705cb0Copy full SHA for 7705cb0
crates/ark/src/sys/unix/interface.rs
@@ -46,8 +46,11 @@ pub fn setup_r(mut args: Vec<*mut c_char>) {
46
47
Rf_initialize_R(args.len() as i32, args.as_mut_ptr() as *mut *mut c_char);
48
49
- // Initialize the signal blocks and handlers (like interrupts)
50
- initialize_signal_handlers();
+ // Initialize the signal blocks and handlers (like interrupts).
+ // Don't do that in tests because that makes them uninterruptible.
51
+ if !harp::IS_TESTING {
52
+ initialize_signal_handlers();
53
+ }
54
55
// Mark R session as interactive
56
// (Should have also been set by call to `Rf_initialize_R()`)
0 commit comments