net.Socket(fd) should start readable and writable
This commit is contained in:
parent
763059ee09
commit
5cb1fd2e32
@ -89,6 +89,7 @@ function Socket(options) {
|
|||||||
// console.trace();
|
// console.trace();
|
||||||
this._handle = createPipe();
|
this._handle = createPipe();
|
||||||
this._handle.open(fd);
|
this._handle.open(fd);
|
||||||
|
this.readable = this.writable = true;
|
||||||
initSocketHandle(this);
|
initSocketHandle(this);
|
||||||
} else {
|
} else {
|
||||||
// private
|
// private
|
||||||
|
@ -25,6 +25,10 @@
|
|||||||
var common = require('../common');
|
var common = require('../common');
|
||||||
var assert = require('assert');
|
var assert = require('assert');
|
||||||
|
|
||||||
|
assert.ok(process.stdout.writable);
|
||||||
|
assert.ok(process.stderr.writable);
|
||||||
|
|
||||||
|
|
||||||
var stdout_write = global.process.stdout.write;
|
var stdout_write = global.process.stdout.write;
|
||||||
var strings = [];
|
var strings = [];
|
||||||
global.process.stdout.write = function(string) {
|
global.process.stdout.write = function(string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user