Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jun 29, 2023
1 parent 5656af1 commit 0d3cb3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
30 changes: 15 additions & 15 deletions source/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,22 @@ static void s_print_stack_trace(int sig, siginfo_t *sig_info, void *user_data) {
#endif

PyObject *aws_py_install_crash_handler(PyObject *self, PyObject *args) {
(void) self;
(void) args;
#if defined(_WIN32)
SetUnhandledExceptionFilter(s_print_stack_trace);
#elif defined(AWS_HAVE_EXECINFO)
struct sigaction sa;
memset(&sa, 0, sizeof(struct sigaction));
sigemptyset(&sa.sa_mask);
(void)self;
(void)args;
#if defined(_WIN32)
SetUnhandledExceptionFilter(s_print_stack_trace);
#elif defined(AWS_HAVE_EXECINFO)
struct sigaction sa;
memset(&sa, 0, sizeof(struct sigaction));
sigemptyset(&sa.sa_mask);

sa.sa_flags = SA_NODEFER;
sa.sa_sigaction = s_print_stack_trace;
sa.sa_flags = SA_NODEFER;
sa.sa_sigaction = s_print_stack_trace;

sigaction(SIGSEGV, &sa, NULL);
sigaction(SIGABRT, &sa, NULL);
sigaction(SIGILL, &sa, NULL);
sigaction(SIGBUS, &sa, NULL);
#endif
sigaction(SIGSEGV, &sa, NULL);
sigaction(SIGABRT, &sa, NULL);
sigaction(SIGILL, &sa, NULL);
sigaction(SIGBUS, &sa, NULL);
#endif
Py_RETURN_NONE;
}
1 change: 0 additions & 1 deletion source/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,6 @@ PyObject *aws_py_native_memory_dump(PyObject *self, PyObject *args) {
Py_RETURN_NONE;
}


/*******************************************************************************
* Definitions
******************************************************************************/
Expand Down

0 comments on commit 0d3cb3d

Please sign in to comment.