![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/mem_alloc.h"#include "common/sentry.h"#include "common/system_signal_handling.h"#include <errno.h>#include <fcntl.h>#include <glib.h>#include <glib/gstdio.h>#include <signal.h>#include <stddef.h>#include <stdio.h>#include <string.h>#include <unistd.h>#include <sys/prctl.h>#include <exchndl.h>
Include dependency graph for system_signal_handling.c:Go to the source code of this file.
Macros | |
| #define | PR_SET_PTRACER 0x59616d61 |
| #define | _NUM_SIGNALS_TO_PRESERVE (sizeof(_signals_to_preserve) / sizeof(_signals_to_preserve[0])) |
| defined (_WIN32) | |
Typedefs | |
| typedef void() | dt_signal_handler_t(int) |
Functions | |
| static LONG WINAPI | dt_toplevel_exception_handler (PEXCEPTION_POINTERS pExceptionInfo) |
| void | dt_set_unhandled_exception_handler_win () |
| void | dt_set_signal_handlers () |
Variables | |
| static const int | _signals_to_preserve [] = { SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM } |
| static LPTOP_LEVEL_EXCEPTION_FILTER | _dt_exceptionfilter_old_handler = NULL |
| static dt_signal_handler_t * | _orig_sig_handlers [(sizeof(_signals_to_preserve)/sizeof(_signals_to_preserve[0]))] = { NULL } |
| static int | _times_handlers_were_set = 0 |
| #define _NUM_SIGNALS_TO_PRESERVE (sizeof(_signals_to_preserve) / sizeof(_signals_to_preserve[0])) |
defined (_WIN32)
Definition at line 76 of file system_signal_handling.c.
| #define PR_SET_PTRACER 0x59616d61 |
Definition at line 55 of file system_signal_handling.c.
| typedef void() dt_signal_handler_t(int) |
Definition at line 58 of file system_signal_handling.c.
| void dt_set_signal_handlers | ( | ) |
defined(APPLE) && !defined(_WIN32)
Definition at line 258 of file system_signal_handling.c.
References _dt_exceptionfilter_old_handler, _NUM_SIGNALS_TO_PRESERVE, _orig_sig_handlers, _signals_to_preserve, _times_handlers_were_set, dt_set_unhandled_exception_handler_win(), dt_toplevel_exception_handler(), i, and void().
Referenced by dt_init().
| void dt_set_unhandled_exception_handler_win | ( | ) |
Definition at line 250 of file system_signal_handling.c.
Referenced by dt_set_signal_handlers().
|
static |
Definition at line 203 of file system_signal_handling.c.
References _dt_exceptionfilter_old_handler, darktable_package_string, dt_free, dt_sentry_backtrace_captured(), and L.
Referenced by dt_set_signal_handlers().
|
static |
Definition at line 73 of file system_signal_handling.c.
Referenced by dt_set_signal_handlers(), and dt_toplevel_exception_handler().
|
static |
Definition at line 77 of file system_signal_handling.c.
Referenced by dt_set_signal_handlers().
|
static |
Definition at line 72 of file system_signal_handling.c.
Referenced by dt_set_signal_handlers().
|
static |
Definition at line 199 of file system_signal_handling.c.
Referenced by dt_set_signal_handlers().