2015-05-19 13:00:06 +02:00
|
|
|
'use strict';
|
2015-09-27 15:31:36 -07:00
|
|
|
require('../common');
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('before opening stdin');
|
2011-12-05 15:36:45 -08:00
|
|
|
process.stdin.resume();
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('stdin opened');
|
2011-12-05 15:36:45 -08:00
|
|
|
setTimeout(function() {
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('pausing stdin');
|
2011-12-05 15:36:45 -08:00
|
|
|
process.stdin.pause();
|
|
|
|
setTimeout(function() {
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('opening again');
|
2011-12-05 15:36:45 -08:00
|
|
|
process.stdin.resume();
|
|
|
|
setTimeout(function() {
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('pausing again');
|
2011-12-05 15:36:45 -08:00
|
|
|
process.stdin.pause();
|
2012-01-17 19:43:34 +01:00
|
|
|
console.error('should exit now');
|
2011-12-05 15:36:45 -08:00
|
|
|
}, 1);
|
|
|
|
}, 1);
|
|
|
|
}, 1);
|