From c707fad015da683152b3771ae7ca156f3d9ff52c Mon Sep 17 00:00:00 2001 From: Sang Woo Kim Date: Mon, 27 Jul 2026 17:54:04 +0900 Subject: [PATCH] std: make send_process_group_signal unsupported on VxWorks VxWorks has no process groups: the SDK defines no `killpg`, and `getpgrp`/`setpgid` are no-ops in libunix, so `kill(-pgrp, sig)` is no substitute either. libc cannot usefully declare `killpg` for this target, so calling it leaves the target unable to build std. Panic instead, matching what fuchsia does for the same method. --- library/std/src/sys/process/unix/vxworks.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/library/std/src/sys/process/unix/vxworks.rs b/library/std/src/sys/process/unix/vxworks.rs index 33e7f6a9a0fea..18b9782f40230 100644 --- a/library/std/src/sys/process/unix/vxworks.rs +++ b/library/std/src/sys/process/unix/vxworks.rs @@ -171,12 +171,9 @@ impl Process { } } - pub fn send_process_group_signal(&self, signal: i32) -> io::Result<()> { - // See note in `send_signal` regarding recycled PIDs. - if self.status.is_some() { - return Ok(()); - } - cvt(unsafe { libc::killpg(self.pid, signal) }).map(drop) + pub fn send_process_group_signal(&self, _signal: i32) -> io::Result<()> { + // VxWorks doesn't have process groups + unimplemented!() } pub fn wait(&mut self) -> io::Result {