refactor: raise SIGABRT instead of write to null address (#3124)
This commit is contained in:
parent
fc0c1896e0
commit
1a13d44d5d
2 changed files with 5 additions and 4 deletions
|
|
@ -1973,7 +1973,7 @@ static int handleCrashLoop(void* data) {
|
|||
g_pHyprRenderer->m_fCrashingDistort += 0.5f;
|
||||
|
||||
if (g_pHyprRenderer->m_fCrashingDistort >= 5.5f)
|
||||
*((int*)nullptr) = 1337;
|
||||
raise(SIGABRT);
|
||||
|
||||
wl_event_source_timer_update(g_pHyprRenderer->m_pCrashingLoop, 1000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue