Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
net.Socket(fd) should start readable and writable
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 15, 2011
1 parent 763059e commit 5cb1fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/net_uv.js
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/simple/test-console.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cb1fd2

Please sign in to comment.