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:
parent
d96b836bef
commit
09ad4f0320
@ -636,10 +636,14 @@ 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)
|
||||||
|
{
|
||||||
|
if (signal(SIGSEGV, _error_handler) == SIG_ERR ||
|
||||||
|
signal(SIGSYS, _error_handler) == SIG_ERR)
|
||||||
{
|
{
|
||||||
perror("signal");
|
perror("signal");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int result = 0;
|
int result = 0;
|
||||||
if (argc >= 2)
|
if (argc >= 2)
|
||||||
|
Loading…
Reference in New Issue
Block a user