]> git.lizzy.rs Git - rust.git/commit
Roll std::run into std::io::process
authorAlex Crichton <alex@alexcrichton.com>
Tue, 18 Feb 2014 20:04:51 +0000 (12:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 24 Feb 2014 05:51:17 +0000 (21:51 -0800)
commita9bd447400c0854600e994f562e2b230171f328f
tree09a6faa8d9f40a5dbf491b215e749c8dca4df0be
parent8786405047cadcfb5ec3a2d711ca264d74843c13
Roll std::run into std::io::process

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
24 files changed:
src/compiletest/procsrv.rs
src/compiletest/runtest.rs
src/libextra/workcache.rs
src/libnative/io/mod.rs
src/libnative/io/process.rs
src/librustc/back/archive.rs
src/librustc/back/link.rs
src/librustdoc/test.rs
src/librustuv/process.rs
src/librustuv/uvio.rs
src/librustuv/uvll.rs
src/libstd/io/fs.rs
src/libstd/io/mod.rs
src/libstd/io/process.rs
src/libstd/io/test.rs
src/libstd/lib.rs
src/libstd/rt/rtio.rs
src/libstd/run.rs [deleted file]
src/test/run-pass/cleanup-arm-conditional.rs
src/test/run-pass/cleanup-shortcircuit.rs
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/issue-10626.rs
src/test/run-pass/process-detach.rs
src/test/run-pass/signal-exit-status.rs