mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-22 03:44:59 -07:00
more fixes
This commit is contained in:
@@ -950,10 +950,10 @@ os_safe_call(OS_ThreadFunctionType* func, OS_ThreadFunctionType* fail_handler, v
|
||||
int signals_to_handle[] = {
|
||||
SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGTRAP,
|
||||
};
|
||||
struct sigaction og_act[ArrayCount(signals_to_handle)] = {0};
|
||||
struct sigaction og_act[array_count(signals_to_handle)] = {0};
|
||||
|
||||
// rjf: attach handler info for all signals
|
||||
for(U32 i = 0; i < ArrayCount(signals_to_handle); i += 1) {
|
||||
for(U32 i = 0; i < array_count(signals_to_handle); i += 1) {
|
||||
sigaction(signals_to_handle[i], &new_act, &og_act[i]);
|
||||
}
|
||||
|
||||
@@ -961,7 +961,7 @@ os_safe_call(OS_ThreadFunctionType* func, OS_ThreadFunctionType* fail_handler, v
|
||||
func(ptr);
|
||||
|
||||
// rjf: reset handler info for all signals
|
||||
for (U32 i = 0; i < ArrayCount(signals_to_handle); i += 1) {
|
||||
for (U32 i = 0; i < array_count(signals_to_handle); i += 1) {
|
||||
sigaction(signals_to_handle[i], &og_act[i], 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user