diff options
| author | Kevin Ballard <kevin@sb.org> | 2015-02-23 21:41:27 -0800 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2015-02-23 21:41:27 -0800 |
| commit | bbc3f2e52537c52571dd26c6712cb961375224ae (patch) | |
| tree | 89ee5d9d771f315c1ee7b418fecb253466fb6f1a /src/libstd/process.rs | |
| parent | 2890508d97af287a136ac50ffa13a1c0a3e32e4e (diff) | |
| download | rust-bbc3f2e52537c52571dd26c6712cb961375224ae.tar.gz rust-bbc3f2e52537c52571dd26c6712cb961375224ae.zip | |
Fix the std::process::Stdio constructors
There are no tests for this because testing inherit/null is tricky. Probably why there weren't tests for it to begin with.
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 86604f62171..c24b08deec2 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -355,11 +355,11 @@ impl Stdio { pub fn capture() -> Stdio { Stdio(StdioImp::Capture) } /// The child inherits from the corresponding parent descriptor. - pub fn inherit() -> Stdio { Stdio(StdioImp::Capture) } + pub fn inherit() -> Stdio { Stdio(StdioImp::Inherit) } /// This stream will be ignored. This is the equivalent of attaching the /// stream to `/dev/null` - pub fn null() -> Stdio { Stdio(StdioImp::Capture) } + pub fn null() -> Stdio { Stdio(StdioImp::Null) } } /// Describes the result of a process after it has terminated. |
