diff options
author | davilla <davilla@4pi.com> | 2011-11-13 10:55:03 -0500 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2011-11-13 10:55:03 -0500 |
commit | 5ad414ddc77a552a91124254381be5cfa4f35f4c (patch) | |
tree | e57faf537b8b724e81c6f8ca7051145dce5b4c2a | |
parent | 9e05f72b7e16b1f42c24e6d53ed4f2d34b3fef5d (diff) |
[osx] fixed, restore default SIGSEGV handler after SDL_Init steals it
-rw-r--r-- | xbmc/Application.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index 851185adae..5ab31240ba 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -599,6 +599,10 @@ bool CApplication::Create() CLog::Log(LOGFATAL, "XBAppEx: Unable to initialize SDL: %s", SDL_GetError()); return false; } + #if defined(TARGET_DARWIN) + // SDL_Init will install a handler for segfaults, restore the default handler. + signal(SIGSEGV, SIG_DFL); + #endif #endif // for python scripts that check the OS |