Permalink
Browse files

lib: set stderr._destroy to dummyDestroy

This seems to be typo: we are setting stdout._destroy instead of
stderr._destroy in the getter of stderr.

PR-URL: #24398
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information...
joyeecheung authored and Trott committed Nov 16, 2018
1 parent 1b75b81 commit 71f4d5abfa4dcc9b0aa2d17a80213eecfc4a911b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/internal/process/stdio.js
@@ -32,7 +32,7 @@ function getMainThreadStdio() {
stderr = createWritableStdioStream(2);
stderr.destroySoon = stderr.destroy;
// Override _destroy so that the fd is never actually closed.
stdout._destroy = dummyDestroy;
stderr._destroy = dummyDestroy;
if (stderr.isTTY) {
process.on('SIGWINCH', () => stderr._refreshSize());
}

0 comments on commit 71f4d5a

Please sign in to comment.