Skip to content

Commit

Permalink
core: add env to disable crash reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Feb 22, 2024
1 parent c353b7c commit e83bf4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ void CCompositor::initServer() {

// register crit signal handler
wl_event_loop_add_signal(m_sWLEventLoop, SIGTERM, handleCritSignal, nullptr);
signal(SIGSEGV, handleUnrecoverableSignal);
signal(SIGABRT, handleUnrecoverableSignal);

if (!envEnabled("HYPRLAND_NO_CRASHREPORTER")) {
signal(SIGSEGV, handleUnrecoverableSignal);
signal(SIGABRT, handleUnrecoverableSignal);
}
signal(SIGUSR1, handleUserSignal);

initManagers(STAGE_PRIORITY);
Expand Down

0 comments on commit e83bf4f

Please sign in to comment.