Compare commits

...

2 commits

2 changed files with 2 additions and 1 deletions

View file

@ -93,7 +93,6 @@ static void install_crash_handler(void (*hdlr)(int, siginfo_t *, void *)) {
sigaction(SIGBUS, &action, nullptr); sigaction(SIGBUS, &action, nullptr);
sigaction(SIGSEGV, &action, nullptr); sigaction(SIGSEGV, &action, nullptr);
sigaction(SIGABRT, &action, nullptr); sigaction(SIGABRT, &action, nullptr);
sigaction(SIGTRAP, &action, nullptr);
sigaction(SIGFPE, &action, nullptr); sigaction(SIGFPE, &action, nullptr);
} }
} // namespace } // namespace

View file

@ -18,6 +18,8 @@ pub var stack_trace_on_errors: bool = false;
pub const subprocess = if (builtin.os.tag == .windows) @import("subprocess_windows.zig") else @import("subprocess.zig"); pub const subprocess = if (builtin.os.tag == .windows) @import("subprocess_windows.zig") else @import("subprocess.zig");
pub const install_debugger = c.install_debugger; pub const install_debugger = c.install_debugger;
pub const install_backtrace = c.install_backtrace;
pub const install_jitdebugger = c.install_jitdebugger;
pub const max_message_size = 8 * 4096; pub const max_message_size = 8 * 4096;
const message_buf_allocator = std.heap.c_allocator; const message_buf_allocator = std.heap.c_allocator;
threadlocal var message_buffer: std.ArrayList(u8) = std.ArrayList(u8).init(message_buf_allocator); threadlocal var message_buffer: std.ArrayList(u8) = std.ArrayList(u8).init(message_buf_allocator);