File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,15 @@ use thread::{self, JoinHandle};
4848/// assert!(ecode.success());
4949/// ```
5050///
51- /// # Safety
51+ /// # Note
5252///
5353/// Take note that there is no implementation of
5454/// [`Drop`](../../core/ops/trait.Drop.html) for child processes, so if you
55- /// not ensure the `Child` has exited (through `kill`, `wait`, or
56- /// `wait_with_output`) then it will continue to run even after the `Child`
57- /// handle to it has gone out of scope.
55+ /// do not ensure the `Child` has exited then it will continue to run, even
56+ /// after the `Child` handle to the child process has gone out of scope.
57+ ///
58+ /// Calling `wait` (or other functions that wrap around it) will make the
59+ /// parent process wait until the child has actually exited before continuing.
5860#[ stable( feature = "process" , since = "1.0.0" ) ]
5961pub struct Child {
6062 handle : imp:: Process ,
You can’t perform that action at this time.
0 commit comments