Skip to content
Permalink
Browse files

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>
  • Loading branch information
addaleax committed Nov 22, 2019
1 parent 255461e commit ea7a6f9dbd05654fff3f8c474ac0f5126bc87376
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/parallel/test-signal-handler-remove-on-exit.js
@@ -0,0 +1,9 @@
'use strict';
require('../common');

// Regression test for https://github.com/nodejs/node/issues/30581
// This script should not crash.

function dummy() {}
process.on('SIGINT', dummy);
process.on('exit', () => process.removeListener('SIGINT', dummy));

0 comments on commit ea7a6f9

Please sign in to comment.
You can’t perform that action at this time.