Skip to content

Commit cac77dd

Browse files
addaleaxtargos
authored andcommitted
test: add regression test for signal handler removal in exit
Refs: #30581 Refs: #30582 PR-URL: #30589 Refs: #30581 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 36f7f88 commit cac77dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)