net.Socket(fd) should start readable and writable
This commit is contained in:
Родитель
763059ee09
Коммит
5cb1fd2e32
|
@ -89,6 +89,7 @@ function Socket(options) {
|
|||
// console.trace();
|
||||
this._handle = createPipe();
|
||||
this._handle.open(fd);
|
||||
this.readable = this.writable = true;
|
||||
initSocketHandle(this);
|
||||
} else {
|
||||
// private
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
var common = require('../common');
|
||||
var assert = require('assert');
|
||||
|
||||
assert.ok(process.stdout.writable);
|
||||
assert.ok(process.stderr.writable);
|
||||
|
||||
|
||||
var stdout_write = global.process.stdout.write;
|
||||
var strings = [];
|
||||
global.process.stdout.write = function(string) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче