Closed mbostock closed 2 weeks ago
Fixes #1459. The main things here are:
process.kill
process.exit
process.off
I also used Promise.race to simplify the code slightly.
Promise.race
Fixes #1459. The main things here are:
process.kill
instead ofprocess.exit
to ensure equivalence with default handlerprocess.off
to remove our handler before killing)I also used
Promise.race
to simplify the code slightly.