summaryrefslogtreecommitdiff
path: root/src/node.js
diff options
context:
space:
mode:
authorJeremiah Senkpiel <fishrock123@rocketmail.com>2015-07-23 09:15:19 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2015-07-23 16:32:28 -0700
commitbf2cd225a84a686d94549ee00100772d02f17551 (patch)
treec4fbfd5290801f262eccd24a9c22adfcc9f9be2b /src/node.js
parent66fc8ca22b05036f88cf457873332e67f5b576b2 (diff)
downloadnode-new-bf2cd225a84a686d94549ee00100772d02f17551.tar.gz
process: resize stderr on SIGWINCH
Fixes: https://github.com/nodejs/io.js/issues/2219 PR-URL: https://github.com/nodejs/io.js/pull/2231 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'src/node.js')
-rw-r--r--src/node.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node.js b/src/node.js
index 82094cf44f..be3eff2ce7 100644
--- a/src/node.js
+++ b/src/node.js
@@ -637,6 +637,11 @@
er = er || new Error('process.stderr cannot be closed.');
stderr.emit('error', er);
};
+ if (stderr.isTTY) {
+ process.on('SIGWINCH', function() {
+ stderr._refreshSize();
+ });
+ }
return stderr;
});