update internal send_signal comment

This commit is contained in:
Deadbeef 2025-06-27 18:24:42 +08:00
parent 2c2bb995af
commit 7a79454de4
2 changed files with 4 additions and 4 deletions

View file

@ -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(());

View file

@ -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(())