mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
df07a713bd
The default signal-handler should be restored if no handlers are assigned.
7 lines
169 B
JavaScript
7 lines
169 B
JavaScript
function tmp() {}
|
|
process.addListener("SIGINT", tmp);
|
|
process.removeListener("SIGINT", tmp);
|
|
setInterval(function () {
|
|
process.stdout.write('keep alive\n');
|
|
}, 1000);
|