We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0482d6d commit a6d53c6Copy full SHA for a6d53c6
test/parallel/test-signal-handler.js
@@ -22,14 +22,14 @@ var i = 0;
22
setInterval(function() {
23
console.log('running process...' + ++i);
24
25
- if (i == 5) {
+ if (i === 5) {
26
process.kill(process.pid, 'SIGUSR1');
27
}
28
}, 1);
29
30
// Test on condition where a watcher for SIGNAL
31
// has been previously registered, and `process.listeners(SIGNAL).length === 1`
32
-process.on('SIGHUP', function() {});
+process.on('SIGHUP', function() { common.fail('should not run'); });
33
process.removeAllListeners('SIGHUP');
34
process.on('SIGHUP', common.mustCall(function() {}));
35
process.kill(process.pid, 'SIGHUP');
0 commit comments