update internal send_signal comment
This commit is contained in:
parent
2c2bb995af
commit
7a79454de4
2 changed files with 4 additions and 4 deletions
|
|
@ -968,8 +968,8 @@ impl Process {
|
|||
}
|
||||
|
||||
pub(crate) fn send_signal(&self, signal: i32) -> io::Result<()> {
|
||||
// If we've already waited on this process then the pid can be recycled
|
||||
// and used for another process, and we probably shouldn't be signaling
|
||||
// If we've already waited on this process then the pid can be recycled and
|
||||
// used for another process, and we probably shouldn't be sending signals to
|
||||
// random processes, so return Ok because the process has exited already.
|
||||
if self.status.is_some() {
|
||||
return Ok(());
|
||||
|
|
|
|||
|
|
@ -151,8 +151,8 @@ impl Process {
|
|||
}
|
||||
|
||||
pub fn send_signal(&self, signal: i32) -> io::Result<()> {
|
||||
// If we've already waited on this process then the pid can be recycled
|
||||
// and used for another process, and we probably shouldn't be killing
|
||||
// If we've already waited on this process then the pid can be recycled and
|
||||
// used for another process, and we probably shouldn't be sending signals to
|
||||
// random processes, so return Ok because the process has exited already.
|
||||
if self.status.is_some() {
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue