Files
shadowsocks-over-websocket/node_modules/set-blocking/index.js
VincentChanX 8d31c899b1 init
2017-04-06 09:21:19 +08:00

8 lines
252 B
JavaScript

module.exports = function (blocking) {
[process.stdout, process.stderr].forEach(function (stream) {
if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
stream._handle.setBlocking(blocking)
}
})
}