diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-11-22 20:47:31 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2017-11-22 20:47:31 -0500 |
| commit | 2178e3a1b90a8169dc7439f28f8346f7c9c4d144 (patch) | |
| tree | 1287696361e53584de8ddc3acdf32510dd68ab3f /src/libstd | |
| parent | b55d29095646f24461de8adebe867986863f8c46 (diff) | |
| download | rust-2178e3a1b90a8169dc7439f28f8346f7c9c4d144.tar.gz rust-2178e3a1b90a8169dc7439f28f8346f7c9c4d144.zip | |
Clarify stdin behavior of `Command::output`.
Fixes #44929.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/process.rs | 6 |
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 /// |
