Skip to content

Commit 02cb521

Browse files
authored
Rollup merge of #143082 - fee1-dead-contrib:push-qvvppzukvkxt, r=Mark-Simulacrum
update internal `send_signal` comment the vxwork did not have the old comment updated in #141990 so update here; signaling -> sending signals to because the latter reads better to me.
2 parents ac22750 + 7a79454 commit 02cb521

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/std/src/sys/process/unix/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,8 @@ impl Process {
968968
}
969969

970970
pub(crate) fn send_signal(&self, signal: i32) -> io::Result<()> {
971-
// If we've already waited on this process then the pid can be recycled
972-
// and used for another process, and we probably shouldn't be signaling
971+
// If we've already waited on this process then the pid can be recycled and
972+
// used for another process, and we probably shouldn't be sending signals to
973973
// random processes, so return Ok because the process has exited already.
974974
if self.status.is_some() {
975975
return Ok(());

library/std/src/sys/process/unix/vxworks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ impl Process {
151151
}
152152

153153
pub fn send_signal(&self, signal: i32) -> io::Result<()> {
154-
// If we've already waited on this process then the pid can be recycled
155-
// and used for another process, and we probably shouldn't be killing
154+
// If we've already waited on this process then the pid can be recycled and
155+
// used for another process, and we probably shouldn't be sending signals to
156156
// random processes, so return Ok because the process has exited already.
157157
if self.status.is_some() {
158158
Ok(())

0 commit comments

Comments
 (0)