Skip to content

Commit f5ac4ec

Browse files
addaleaxMylesBorins
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 <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 4d396fd commit f5ac4ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
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)