diff options
| author | bors <bors@rust-lang.org> | 2015-02-24 15:01:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-24 15:01:28 +0000 |
| commit | c9ace059e707392ceec46619ed032e93e6256dd5 (patch) | |
| tree | 4555f36b57c8bc90b12242e6e5a45644bb7867a4 /src/libstd/process.rs | |
| parent | dccdde4007c191aa8b8d9cfffb0c7d3509fa675e (diff) | |
| parent | bbc3f2e52537c52571dd26c6712cb961375224ae (diff) | |
| download | rust-c9ace059e707392ceec46619ed032e93e6256dd5.tar.gz rust-c9ace059e707392ceec46619ed032e93e6256dd5.zip | |
Auto merge of #22749 - kballard:process-stdio-constructors, r=alexcrichton
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. |
