about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-11-23 21:51:13 +0100
committerGitHub <noreply@github.com>2017-11-23 21:51:13 +0100
commite6968dfa0d58cd4299e9db88ad53ec309fa4192a (patch)
tree2098adb5f09f9c876121ba1a14d7e36428e009dc /src/libstd
parentf7373b1e1eb1c65f3f09e2d2045fcf0f865f76cc (diff)
parent2178e3a1b90a8169dc7439f28f8346f7c9c4d144 (diff)
downloadrust-e6968dfa0d58cd4299e9db88ad53ec309fa4192a.tar.gz
rust-e6968dfa0d58cd4299e9db88ad53ec309fa4192a.zip
Rollup merge of #46220 - rust-lang:frewsxcv-issue-44929, r=kennytm
Clarify stdin behavior of `Command::output`.

Fixes #44929.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 35c33f40253..2335695ae42 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -712,8 +712,10 @@ impl Command {
     /// Executes the command as a child process, waiting for it to finish and
     /// collecting all of its output.
     ///
-    /// By default, stdin, stdout and stderr are captured (and used to
-    /// provide the resulting output).
+    /// By default, stdout and stderr are captured (and used to provide the
+    /// resulting output). Stdin is not inherited from the parent and any
+    /// attempt by the child process to read from the stdin stream will result
+    /// in the stream immediately closing.
     ///
     /// # Examples
     ///