Skip to content

Commit 7683922

Browse files
committed
Minor corrections in docs for std::process::Child
1 parent cee1695 commit 7683922

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/libstd/process.rs

+6-4
Original file line numberDiff line numberDiff 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")]
5961
pub struct Child {
6062
handle: imp::Process,

0 commit comments

Comments
 (0)