mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
net.Socket(fd) should start readable and writable
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user