Setup stdin in both processes on Windows
This commit is contained in:
parent
b5e9bb9e6a
commit
28b33074cf
2 changed files with 17 additions and 15 deletions
|
@ -39,14 +39,6 @@ if (process.platform === 'win32') {
|
|||
}
|
||||
console.log = console.error = console.warn = consoleLog
|
||||
process.stdout.write = process.stderr.write = streamWrite
|
||||
|
||||
// Always returns EOF for stdin stream.
|
||||
var Readable = require('stream').Readable
|
||||
var stdin = new Readable()
|
||||
stdin.push(null)
|
||||
process.__defineGetter__('stdin', function () {
|
||||
return stdin
|
||||
})
|
||||
}
|
||||
|
||||
// Don't quit on fatal error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue