]> git.lizzy.rs Git - rust.git/commit
auto merge of #12380 : alexcrichton/rust/run-rewrite, r=brson
authorbors <bors@rust-lang.org>
Mon, 24 Feb 2014 06:06:50 +0000 (22:06 -0800)
committerbors <bors@rust-lang.org>
Mon, 24 Feb 2014 06:06:50 +0000 (22:06 -0800)
commita5342d5970d57dd0cc4805ba0f5385d7f3859c94
tree8ba2e1a0af5cece5ec0be20375bca77710f2c333
parent3c2650b4d570bee29332e75109687bc3d5d05b5c
parenta9bd447400c0854600e994f562e2b230171f328f
auto merge of #12380 : alexcrichton/rust/run-rewrite, r=brson

The std::run module is a relic from a standard library long since past, and
there's not much use to having two modules to execute processes with where one
is slightly more convenient. This commit merges the two modules, moving lots of
functionality from std::run into std::io::process and then deleting
std::run.

New things you can find in std::io::process are:

* Process::new() now only takes prog/args
* Process::configure() takes a ProcessConfig
* Process::status() is the same as run::process_status
* Process::output() is the same as run::process_output
* I/O for spawned tasks is now defaulted to captured in pipes instead of ignored
* Process::kill() was added (plus an associated green/native implementation)
* Process::wait_with_output() is the same as the old finish_with_output()
* destroy() is now signal_exit()
* force_destroy() is now signal_kill()

Closes #2625
Closes #10016
src/libstd/io/mod.rs
src/libstd/lib.rs