From 09ad4f0320dda758164eef2954d2456a5c0c656d Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 22 Aug 2023 16:48:12 +0000 Subject: [PATCH] More callstacks on android. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4415 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fa8ba2d9..1e24ca1e 100644 --- a/src/main.c +++ b/src/main.c @@ -636,9 +636,13 @@ int main(int argc, char* argv[]) #if defined(__ANDROID__) use_error_handler = true; #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;