Command.spawn posix_spawn support for NetBSD / DragonFlyBSD. #48681
Labels
A-runtime
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
O-dragonfly
Operating system: DragonFly BSD
O-netbsd
Operating system: NetBSD
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Issue #48624 is adding support for the more efficient
posix_spawn
in some cases ofCommand.spawn
. Theposix_spawn
of NetBSD and DragonFlyBSD supports returning ENOENT directly so these platforms can grow support for it. They just need the libc bindings (like in rust-lang/libc@92d50c9) and then an update to libstd's Command target list as done in #48624.OpenBSD does not support this though as their implementation uses
fork
rather thanvfork
and lacks a communication back to the parent about theexec
failure.This test .c file was used to check for the needed support:
A failing assert means the platform cannot grow
posix_spawn
support.The text was updated successfully, but these errors were encountered: