Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/switches/is_main_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function getStdin() {
switch (guessHandleType(fd)) {
case 'TTY':
const tty = require('tty');
stdin = new tty.ReadStream(fd);
stdin = new tty.ReadStream(fd, { highWaterMark: 0 });
Comment thread
ronag marked this conversation as resolved.
Outdated
Comment thread
ronag marked this conversation as resolved.
Outdated
break;

case 'FILE':
Expand Down
1 change: 0 additions & 1 deletion lib/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function WriteStream(fd) {
}

net.Socket.call(this, {
highWaterMark: 0,
Comment thread
ronag marked this conversation as resolved.
handle: tty,
manualStart: true
});
Expand Down
8 changes: 8 additions & 0 deletions test/parallel/test-stdout-stderr-write.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

require('../common');
const assert = require('assert');

// https://github.com/nodejs/node/pull/39246
assert.strictEqual(process.stderr.write('asd'), true);
assert.strictEqual(process.stdout.write('asd'), true);