mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
When crash reporter is disabled also disable resetSegfaultHanlder
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user