I'm currently working with a library in node.js that happens to capture Ctrl-C and throw an error instead of allowing the normal behaviour (emitting a SIGINT event) to occur.
Wondering if it is possible to catch this error and emit a SIGINT event?
It is possible to do this within a Node process.
You can emit the 'SIGINT'
event from the process object.
process.emit('SIGINT');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With