1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 12:53:51 +00:00

Signals are only set if TRACY_NO_CRASH_HANDLER is not defined.

This commit is contained in:
Bartosz Taudul 2022-11-03 17:21:09 +01:00
parent 4abb3b5e90
commit e7ac54fba6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1454,7 +1454,7 @@ Profiler::~Profiler()
if( m_crashHandlerInstalled ) RemoveVectoredExceptionHandler( m_exceptionHandler ); if( m_crashHandlerInstalled ) RemoveVectoredExceptionHandler( m_exceptionHandler );
#endif #endif
#ifdef __linux__ #if defined __linux__ && !defined TRACY_NO_CRASH_HANDLER
if( m_crashHandlerInstalled ) if( m_crashHandlerInstalled )
{ {
sigaction( TRACY_CRASH_SIGNAL, &m_prevSignal.pwr, nullptr ); sigaction( TRACY_CRASH_SIGNAL, &m_prevSignal.pwr, nullptr );