More callstacks on android.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4415 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-08-22 16:48:12 +00:00
parent d96b836bef
commit 09ad4f0320

View File

@ -636,9 +636,13 @@ int main(int argc, char* argv[])
#if defined(__ANDROID__) #if defined(__ANDROID__)
use_error_handler = true; use_error_handler = true;
#endif #endif
if (use_error_handler && signal(SIGSEGV, _error_handler) == SIG_ERR) if (use_error_handler)
{ {
perror("signal"); if (signal(SIGSEGV, _error_handler) == SIG_ERR ||
signal(SIGSYS, _error_handler) == SIG_ERR)
{
perror("signal");
}
} }
int result = 0; int result = 0;