File tree 1 file changed +6
-4
lines changed
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};
48
48
/// assert!(ecode.success());
49
49
/// ```
50
50
///
51
- /// # Safety
51
+ /// # Note
52
52
///
53
53
/// Take note that there is no implementation of
54
54
/// [`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.
58
60
#[ stable( feature = "process" , since = "1.0.0" ) ]
59
61
pub struct Child {
60
62
handle : imp:: Process ,
You can’t perform that action at this time.
0 commit comments