0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/should_exit.js
Jonas Pfenniger df07a713bd New test-case: signal unregistration
The default signal-handler should be restored if no handlers are
assigned.
2010-04-25 23:14:07 -07:00

7 lines
169 B
JavaScript

function tmp() {}
process.addListener("SIGINT", tmp);
process.removeListener("SIGINT", tmp);
setInterval(function () {
process.stdout.write('keep alive\n');
}, 1000);