about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-02 07:28:04 +0000
committerbors <bors@rust-lang.org>2016-02-02 07:28:04 +0000
commit01d44ca74fa63e078d7b8c2e5f221df06d72fb46 (patch)
tree74dcc155ed99bbc82d5be3ef7b63ef6ac28a32e4 /src/libstd/process.rs
parent508c21e4aeaa950553ac823f064a525c24ea85fd (diff)
parentc3f6122215fe5576ddca544b9c22f8aa34312eb5 (diff)
downloadrust-01d44ca74fa63e078d7b8c2e5f221df06d72fb46.tar.gz
rust-01d44ca74fa63e078d7b8c2e5f221df06d72fb46.zip
Auto merge of #31359 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #30971, #31202, #31247, #31270, #31281, #31327, #31339, #31340, #31342, #31344, #31345, #31346, #31348
- Failed merges:
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 7197dfa8b2d..5e0a54392d2 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -47,6 +47,16 @@ use thread::{self, JoinHandle};
 ///
 /// assert!(ecode.success());
 /// ```
+///
+/// # Note
+///
+/// Take note that there is no implementation of
+/// [`Drop`](../../core/ops/trait.Drop.html) for child processes, so if you
+/// do not ensure the `Child` has exited then it will continue to run, even
+/// after the `Child` handle to the child process has gone out of scope.
+///
+/// Calling `wait` (or other functions that wrap around it) will make the
+/// parent process wait until the child has actually exited before continuing.
 #[stable(feature = "process", since = "1.0.0")]
 pub struct Child {
     handle: imp::Process,