diff --git a/ext/os/lib.rs b/ext/os/lib.rs index f084601678..a2d5a7193b 100644 --- a/ext/os/lib.rs +++ b/ext/os/lib.rs @@ -116,6 +116,12 @@ deno_core::extension!( "op_exit" | "op_set_exit_code" | "op_get_exit_code" => op.with_implementation_from(&deno_core::op_void_sync()), _ => op, + }, + state = |state| { + #[cfg(unix)] + { + state.put(ops::signal::SignalState::default()); + } } );