Minor corrections in docs for std::process::Child
This commit is contained in:
parent
cee1695e08
commit
76839221ff
@ -48,13 +48,15 @@
|
||||
/// assert!(ecode.success());
|
||||
/// ```
|
||||
///
|
||||
/// # Safety
|
||||
/// # Note
|
||||
///
|
||||
/// Take note that there is no implementation of
|
||||
/// [`Drop`](../../core/ops/trait.Drop.html) for child processes, so if you
|
||||
/// not ensure the `Child` has exited (through `kill`, `wait`, or
|
||||
/// `wait_with_output`) then it will continue to run even after the `Child`
|
||||
/// handle to it has gone out of scope.
|
||||
/// 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,
|
||||
|
Loading…
Reference in New Issue
Block a user