When crash reporter is disabled also disable resetSegfaultHanlder

This commit is contained in:
Jarred Sumner
2024-07-26 14:50:56 -07:00
parent 8a78b2241d
commit 244100c32f
2 changed files with 3 additions and 1 deletions

View File

@@ -770,6 +770,8 @@ pub fn init() void {
}
pub fn resetSegfaultHandler() void {
if (!enable) return;
if (bun.Environment.os == .windows) {
if (windows_segfault_handle) |handle| {
const rc = windows.kernel32.RemoveVectoredExceptionHandler(handle);

View File

@@ -8,7 +8,7 @@ const Environment = bun.Environment;
pub const panic = bun.crash_handler.panic;
pub const std_options = std.Options{
.enable_segfault_handler = !bun.crash_handler.enable,
.enable_segfault_handler = false,
};
pub const io_mode = .blocking;