| 551 | } |
| 552 | |
| 553 | BFP_EXPORT void BFP_CALLTYPE BfpSystem_Init(int version, BfpSystemInitFlags flags) |
| 554 | { |
| 555 | BfpGetGlobalData(); |
| 556 | |
| 557 | if (version != BFP_VERSION) |
| 558 | { |
| 559 | BfpSystem_FatalError(StrFormat("Bfp build version '%d' does not match requested version '%d'", BFP_VERSION, version).c_str(), "BFP FATAL ERROR"); |
| 560 | } |
| 561 | |
| 562 | struct sigaction ignoreAction = { SIG_IGN }; |
| 563 | sigaction(SIGPIPE, &ignoreAction, NULL); |
| 564 | |
| 565 | //if (ptrace(PTRACE_TRACEME, 0, 1, 0) != -1) |
| 566 | { |
| 567 | //ptrace(PTRACE_DETACH, 0, 1, 0); |
| 568 | //signal(SIGSEGV, SigHandler); |
| 569 | //signal(SIGFPE, SigHandler); |
| 570 | //signal(SIGABRT, SigHandler); |
| 571 | |
| 572 | /*struct sigaction action; |
| 573 | memset(&action, 0, sizeof(action)); |
| 574 | action.sa_sigaction = signal_segv; |
| 575 | action.sa_flags = SA_SIGINFO; |
| 576 | if(sigaction(SIGSEGV, &action, NULL) < 0) |
| 577 | perror("sigaction");*/ |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | BFP_EXPORT void BFP_CALLTYPE BfpSystem_InitCrashCatcher(BfpSystemInitFlags flags) |
| 582 | { |
nothing calls this directly
no test coverage detected