Skip to content

Commit

Permalink
Update to a function
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jun 29, 2023
1 parent 7aae759 commit 5656af1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@ Please note that on Mac, once a private key is used with a certificate, that cer
```
static: certificate has an existing certificate-key pair that was previously imported into the Keychain. Using key from Keychain instead of the one provided.
```

## Crash Handler
You can enable the crash handler by setting the environment variable `AWS_CRT_ENABLE_CRASH_HANDLER=1`. This will generate crash dumps in the event of a fatal error.
3 changes: 3 additions & 0 deletions awscrt/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ def get_cpu_count_for_group(group_idx: int) -> int:


def install_crash_handler():
"""
Registers a crash handler that will generate crash dumps in the event of a fatal error.
"""
_awscrt.install_crash_handler()
2 changes: 1 addition & 1 deletion source/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ PyObject *aws_py_install_crash_handler(PyObject *self, PyObject *args) {
sigaction(SIGILL, &sa, NULL);
sigaction(SIGBUS, &sa, NULL);
#endif
return Py_None;
Py_RETURN_NONE;
}

0 comments on commit 5656af1

Please sign in to comment.