process: clarify Child::kill behavior (#7162)

This commit is contained in:
Stepan Koltsov 2025-03-06 11:29:51 +00:00 committed by GitHub
parent 042433cdcc
commit e076d21f67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1164,7 +1164,12 @@ impl Child {
/// Forces the child to exit.
///
/// This is equivalent to sending a `SIGKILL` on unix platforms.
/// This is equivalent to sending a `SIGKILL` on unix platforms
/// followed by [`wait`](Child::wait).
///
/// Note: std version of [`Child::kill`](std::process::Child::kill) does not `wait`.
/// For an equivalent of `Child::kill` in the standard library,
/// use [`start_kill`](Child::start_kill).
///
/// # Examples
///