diff --git a/README.md b/README.md index 77227a6..6075a2e 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ setSignal(SIGSEGV, false); setSignal(EXCEPTION_BREAKPOINT, true); setSignal(SIGTRAP, true); + +setSignal(EXCEPTION_ALL, true) // this enables capturing every signal. ``` On **Windows**, all the **Unix** signals are `null`, and the opposite is true. diff --git a/index.js b/index.js index d7da545..7a15f3b 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ if (global['segfault-raub']) { } else { const { getBin } = require('addon-tools-raub'); - const core = require(`./${getBin()}/segfault`); + const core = require(`./${getBin()}/segfault.node`); global['segfault-raub'] = core; module.exports = core;