Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

net.Socket(fd) should start readable and writable

  • Loading branch information...
ry committed Sep 15, 2011
1 parent 763059e commit 5cb1fd2e3239356cbddc833fb4c8b8817c49c5f8
Showing with 5 additions and 0 deletions.
  1. +1 −0 lib/net_uv.js
  2. +4 −0 test/simple/test-console.js
@@ -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) {

0 comments on commit 5cb1fd2

Please sign in to comment.
You can’t perform that action at this time.