tty: unbreak --use-legacy

Fixes #1844.
pull/5370/head
Ben Noordhuis 2011-10-10 15:37:07 +02:00
parent d3f3f2e455
commit 326ba25451
1 changed files with 6 additions and 2 deletions

View File

@ -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':
@ -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: