mirror of https://github.com/nodejs/node.git
parent
d3f3f2e455
commit
326ba25451
|
@ -231,7 +231,9 @@
|
||||||
|
|
||||||
// Hack to have stdout not keep the event loop alive.
|
// Hack to have stdout not keep the event loop alive.
|
||||||
// See https://github.com/joyent/node/issues/1726
|
// See https://github.com/joyent/node/issues/1726
|
||||||
stdout._handle.unref();
|
if (stdout._handle && stdout._handle.unref) {
|
||||||
|
stdout._handle.unref();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'FILE':
|
case 'FILE':
|
||||||
|
@ -253,7 +255,9 @@
|
||||||
|
|
||||||
// FIXME Hack to have stdout not keep the event loop alive.
|
// FIXME Hack to have stdout not keep the event loop alive.
|
||||||
// See https://github.com/joyent/node/issues/1726
|
// See https://github.com/joyent/node/issues/1726
|
||||||
stdout._handle.unref();
|
if (stdout._handle && stdout._handle.unref) {
|
||||||
|
stdout._handle.unref();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue