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

Commit

Permalink
tty: unbreak --use-legacy
Browse files Browse the repository at this point in the history
Fixes #1844.
  • Loading branch information
bnoordhuis committed Oct 10, 2011
1 parent d3f3f2e commit 326ba25
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/node.js
Expand Up @@ -231,7 +231,9 @@

// Hack to have stdout not keep the event loop alive.
// See https://github.com/joyent/node/issues/1726
stdout._handle.unref();
if (stdout._handle && stdout._handle.unref) {
stdout._handle.unref();
}
break;

case 'FILE':
Expand All @@ -253,7 +255,9 @@

// FIXME Hack to have stdout not keep the event loop alive.
// See https://github.com/joyent/node/issues/1726
stdout._handle.unref();
if (stdout._handle && stdout._handle.unref) {
stdout._handle.unref();
}
break;

default:
Expand Down

0 comments on commit 326ba25

Please sign in to comment.