summary refs log tree commit diff
path: root/src/libstd/process.rs
AgeCommit message (Collapse)AuthorLines
2018-04-24Rollup merge of #49461 - andreastt:child-kill-exited, r=Mark-Simulacrumkennytm-2/+11
std: Child::kill() returns error if process has already exited This patch makes it clear in std::process::Child::kill()'s API documentation that an error is returned if the child process has already cleanly exited. This is implied by the example, but not called out explicitly.
2018-04-17fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+1
2018-04-08fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+1
2018-04-05std: Inline some Termination-related methodsAlex Crichton-0/+2
These were showing up in tests and in binaries but are trivially optimize-able away, so add `#[inline]` attributes so LLVM has an opportunity to optimize them out.
2018-04-02Fix "since" version for getpid feature.Thayne McCombs-1/+1
It was stabilized right before the beta branch was cut for 1.26.0. See https://github.com/rust-lang/rust/pull/49523#issuecomment-377996315
2018-04-01Stabilize `std::process::id()`Thayne McCombs-2/+1
Fixes #44971
2018-03-29fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+6
2018-03-28fixup! std: Child::kill() returns error if process has already exitedAndreas Tolfsen-1/+4
2018-03-28std: Child::kill() returns error if process has already exitedAndreas Tolfsen-2/+3
This patch makes it clear in std::process::Child::kill()'s API documentation that an error is returned if the child process has already cleanly exited. This is implied by the example, but not called out explicitly.
2018-03-25Minor formatting consistency fix.Alexander Ronald Altman-1/+1
2018-03-21termination_trait: Make error message more helpfulTyler Mandry-2/+3
2018-03-21termination_trait: Put examples in error help, not labelTyler Mandry-1/+1
2018-03-21termination_trait: Add () example to error messageTyler Mandry-1/+1
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