You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-processArea: `std::process` (note: `std::env` is A-env)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
This is a tracking issue for adding a setsid method to the std::os::unix::process::CommandExt trait.
Add a new setsid method to the CommandExt trait for UNIX systems. Using the setsid method, a caller can create a new session and process group whilst still benefiting from the POSIX spawn fast path code.
It appears POSIX_SPAWN_SETSID is not actually defined in our libc crate anywhere except Linux.
Technically, I think it's also defined for Solaris, Illumos, Hurd and Haiku. But our standard library does not support using posix_spawn for those platforms, with the exception of illumos.
A-processArea: `std::process` (note: `std::env` is A-env)C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.
Activity
rust: library: Add setsid method to CommandExt trait
rust: library: Add setsid method to CommandExt trait
workingjubilee commentedon Jul 10, 2025
It appears
POSIX_SPAWN_SETSIDis not actually defined in our libc crate anywhere except Linux.Rollup merge of rust-lang#142391 - LevitatingBusinessMan:setsid, r=wo…
LevitatingBusinessMan commentedon Jul 11, 2025
Technically, I think it's also defined for Solaris, Illumos, Hurd and Haiku. But our standard library does not support using posix_spawn for those platforms, with the exception of illumos.
Rollup merge of rust-lang#142391 - LevitatingBusinessMan:setsid, r=wo…
Unrolled build for #142391
workingjubilee commentedon Jul 13, 2025
Huh. That's Even Weirder honestly.
Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee
Rollup merge of rust-lang#142391 - LevitatingBusinessMan:setsid, r=wo…
Rollup merge of #142391 - LevitatingBusinessMan:setsid, r=workingjubilee
A process a plugin or a compile runs is started by `posix_spawn` in a…