You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
429 B

console.error('before opening stdin');
process.stdin.resume();
console.error('stdin opened');
setTimeout(function() {
console.error('pausing stdin');
process.stdin.pause();
setTimeout(function() {
console.error('opening again');
process.stdin.resume();
setTimeout(function() {
console.error('pausing again');
process.stdin.pause();
console.error('should exit now');
}, 1);
}, 1);
}, 1);