pty: reset all signals after fork

This commit is contained in:
Mitchell Hashimoto
2024-08-31 14:52:55 -07:00
parent 9f6a28bf44
commit e7cbeba140
2 changed files with 23 additions and 2 deletions

View File

@@ -78,8 +78,10 @@ fn initThread(gpa: Allocator) !void {
cache_dir.len,
);
// Debug logging for Sentry
sentry.c.sentry_options_set_debug(opts, @intFromBool(true));
if (comptime builtin.mode == .Debug) {
// Debug logging for Sentry
sentry.c.sentry_options_set_debug(opts, @intFromBool(true));
}
// Initialize
if (sentry.c.sentry_init(opts) != 0) return error.SentryInitFailed;