We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f7f88 commit cac77ddCopy full SHA for cac77dd
test/parallel/test-signal-handler-remove-on-exit.js
@@ -0,0 +1,9 @@
1
+'use strict';
2
+require('../common');
3
+
4
+// Regression test for https://github.com/nodejs/node/issues/30581
5
+// This script should not crash.
6
7
+function dummy() {}
8
+process.on('SIGINT', dummy);
9
+process.on('exit', () => process.removeListener('SIGINT', dummy));
0 commit comments