mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
10a9c00563
Change sequential/test-signal-unregister so it doesn't use fixed timeouts for sending the signal and expecting the child to quit. Fixes: https://github.com/iojs/io.js/issues/1223 PR-URL: https://github.com/iojs/io.js/pull/1227 Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
8 lines
192 B
JavaScript
8 lines
192 B
JavaScript
function tmp() {}
|
|
process.on('SIGINT', tmp);
|
|
process.removeListener('SIGINT', tmp);
|
|
setInterval(function() {
|
|
process.stdout.write('keep alive\n');
|
|
}, 1000);
|
|
process.stdout.write('start\n');
|