summaryrefslogtreecommitdiff
path: root/test/pseudo-tty/test-stdout-read.out
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-09-24 11:51:14 +0200
committerAnna Henningsen <anna@addaleax.net>2018-10-04 09:20:24 -0700
commitcbc3ef64ceaf95ec1d0d1535211ce3a6945407e1 (patch)
treebd63c53649b149b8860a7332010e2f952574b3e0 /test/pseudo-tty/test-stdout-read.out
parentd0fc382c4b18a7021d0a93194bc4b304ed6f7d6f (diff)
downloadandroid-node-v8-cbc3ef64ceaf95ec1d0d1535211ce3a6945407e1.tar.gz
android-node-v8-cbc3ef64ceaf95ec1d0d1535211ce3a6945407e1.tar.bz2
android-node-v8-cbc3ef64ceaf95ec1d0d1535211ce3a6945407e1.zip
process: allow reading from stdout/stderr sockets
Allow reading from stdio streams that are conventionally associated with process output, since this is only convention. This involves disabling the oddness around closing stdio streams. Its purpose is to prevent the file descriptors 0 through 2 from being closed, since doing so can lead to information leaks when new file descriptors are being opened; instead, not doing anything seems like a more reasonable choice. Fixes: https://github.com/nodejs/node/issues/21203 PR-URL: https://github.com/nodejs/node/pull/23053 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/pseudo-tty/test-stdout-read.out')
-rw-r--r--test/pseudo-tty/test-stdout-read.out1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pseudo-tty/test-stdout-read.out b/test/pseudo-tty/test-stdout-read.out
new file mode 100644
index 0000000000..3b7fda223d
--- /dev/null
+++ b/test/pseudo-tty/test-stdout-read.out
@@ -0,0 +1 @@
+<Buffer 48 65 6c 6c 6f 21 0a>