about summary refs log tree commit diff
path: root/src/libstd/process.rs
AgeCommit message (Collapse)AuthorLines
2018-03-03Move process::ExitCode internals to sysScott McMurray-21/+8
Now begins the saga of fixing compilation errors on other platforms...
2018-02-28Fix linkcheckerScott McMurray-2/+2
2018-02-27Put some thought and documentation effort into process::ExitCodeScott McMurray-24/+52
2018-02-24Restrict the Termination impls to simplify stabilizationScott McMurray-6/+18
Make a minimal commitment for stabilization. More impls are likely in future, but are not necessary at this time.
2018-02-22move Termination trait to std::processNiko Matsakis-0/+67
2018-01-26add test checking that process::Command is SendCorentin Henry-0/+6
2018-01-11Make tests build on CloudABI.Ed Schouten-1/+1
There are some tests that need to be disabled on CloudABI specifically, due to the fact that the shims cannot be built in combination with unix::ext or windows::ext. Also improve the scoping of some imports to suppress compiler warnings.
2018-01-04Fix an error in std::process documentationLoïc Damien-2/+2
2017-12-26Rollup merge of #46943 - malbarbo:process-test-busybox, r=alexcrichtonkennytm-1/+1
Fix process test when using busybox mkdir busybox mkdir . returns 0 busybox mkdir ./ returns 1
2017-12-24Capture environment at spawnDiggory Blake-4/+25
2017-12-22Fix process test when using busybox mkdirMarco A L Barbosa-1/+1
busybox mkdir . returns 0 busybox mkdir ./ returns 1
2017-11-22Clarify stdin behavior of `Command::output`.Corey Farwell-2/+4
Fixes #44929.
2017-10-29Auto merge of #45295 - Technius:docs/process, r=steveklabnikbors-11/+72
Improve std::process module docs Addresses part of #29370 I've changed the first `cat` example to a "Hello World" example involving echo, and I've also added another example showing how to pipe output. I'm still working on the module-level description. For now, I'd like feedback on the examples. r? @steveklabnik
2017-10-28Add no_run to process examples involving unix commandsBryan Tan-2/+2
2017-10-26Rollup merge of #45059 - tmccombs:pid, r=alexcrichtonkennytm-0/+19
Add current_pid function Fixes #44971
2017-10-20Fix most rendering warnings from switching to CommonMarksteveklabnik-1/+1
2017-10-17Add child process IO handling docsBryan Tan-7/+18
2017-10-17Rollup merge of #45151 - Pirh:stdio_default_docs, r=frewsxcvkennytm-0/+18
Document defaults for stdin, stdout, and stderr methods of Command For #29370
2017-10-15Create section on how to spawn processes; change module descriptionBryan Tan-14/+28
2017-10-15Fix std::process hello world exampleBryan Tan-1/+1
2017-10-15Rollup merge of #45113 - Pirh:process_output_links, r=steveklabnikkennytm-0/+9
Link std::process::Output to Command and Child As per #29370
2017-10-14Fixed accidental deletion of colonBryan Tan-1/+1
2017-10-14Add a brief description and two examples to std::processBryan Tan-7/+43
2017-10-13Add line break after summary of process::OutputPirh-3/+5
2017-10-10Remove misleading line on Windows Subsystem stdioPirh-9/+0
2017-10-10Auto merge of #45141 - kennytm:rollup, r=kennytmbors-1/+108
Rollup of 9 pull requests - Successful merges: #44962, #45051, #45091, #45106, #45117, #45118, #45120, #45125, #45136 - Failed merges:
2017-10-10Auto merge of #44822 - frewsxcv:frewsxcv-eprintln, r=Kimundibors-3/+1
Migrate to eprint/eprintln macros where appropriate. None
2017-10-09Document defaults for stdin, stdout, and stderr methods of CommandPirh-0/+27
2017-10-08Link std::process::Output to Command and ChildPirh-1/+8
2017-10-08Remove ./ prefix from relative URLsPirh-10/+10
Also remove trailing whitespace to pass tidy checks.
2017-10-08Add links and examples for std::process::StdioPirh-1/+108
As per #29370
2017-10-07Change current_pid to just `id`.Thayne McCombs-3/+4
2017-10-07Add missing colon.Thayne McCombs-1/+1
2017-10-06Add current_pid functionThayne McCombs-0/+18
Fixes #44971
2017-10-02Document that process::abort will not call the panic hookPirh-1/+3
2017-09-28Migrate to eprint/eprintln macros where appropriate.Corey Farwell-3/+1
2017-09-27Explain difference between panic! and abort in abort docsPirh-1/+10
As per #29370
2017-09-27Remove extraneous brackets from abort documentationPirh-1/+1
As per #29370
2017-09-21Add note about being blocked on input.Corey Farwell-1/+2
2017-09-21Remove platform-specific terminology.Corey Farwell-6/+3
2017-09-15Expand some of the std{in,out,err} usages.Corey Farwell-8/+14
2017-09-15Indicate how ChildStd{in,out,err} FDs are closed.Corey Farwell-0/+12
Fixes https://github.com/rust-lang/rust/issues/41452.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-4/+4
Like #43008 (f668999), but _much more aggressive_.
2017-07-28rustbuild: Use Cargo's "target runner"Alex Crichton-2/+13
This commit leverages a relatively new feature in Cargo to execute cross-compiled tests, the `target.$target.runner` configuration. We configure it through environment variables in rustbuild and this avoids the need for us to locate and run tests after-the-fact, instead relying on Cargo to do all that execution for us.
2017-07-21Add a missing verb to the description of std::process::ExitStatus::success().Petr Zemek-2/+2
"Signal termination not considered" -> "Signal termination is not considered" The first line of the description was rewrapped so it fits into 80 characters.
2017-06-24Stabilize Command::envsSteven Fackler-3/+1
Closes #38526
2017-06-23Removed as many "```ignore" as possible.kennytm-2/+6
Replaced by adding extra imports, adding hidden code (`# ...`), modifying examples to be runnable (sorry Homura), specifying non-Rust code, and converting to should_panic, no_run, or compile_fail. Remaining "```ignore"s received an explanation why they are being ignored.
2017-06-20Add `Read::initializer`.Steven Fackler-5/+7
This is an API that allows types to indicate that they can be passed buffers of uninitialized memory which can improve performance.
2017-06-06Add conversions from File and Child* handles to StdioJosh Stone-6/+35
`Stdio` now implements `From<ChildStdin>`, `From<ChildStdout>`, `From<ChildStderr>`, and `From<File>`. The `Command::stdin`/`stdout`/`stderr` methods now take any type that implements `Into<Stdio>`. This makes it much easier to write shell-like command chains, piping to one another and redirecting to and from files. Otherwise one would need to use the unsafe and OS-specific `from_raw_fd` or `from_raw_handle`.
2017-05-21Auto merge of #41904 - sfackler:1.18-stabilization, r=alexcrichtonbors-3/+1
Stabilize library features for 1.18.0 Closes #38863 Closes #38980 Closes #38903 Closes #36648 r? @alexcrichton @rust-lang/libs