-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust: library: Add setsid
method to CommandExt
trait
#105377
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @m-ou-se (or someone else) soon. Please see the contribution instructions for more information. |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot label +T-libs-api -T-libs |
This comment has been minimized.
This comment has been minimized.
The CI failures are caused by using Is there another cargo file I need to update? |
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha The Miri subtree was changed cc @rust-lang/miri Some changes occurred in cc @BoxyUwU |
I've updated a couple of Sorry for the noise generated by rustbot, I accidentally included some commits from |
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #106256) made this pull request unmergeable. Please resolve the merge conflicts. |
Add a setsid method to the CommandExt trait so that callers can create a process in a new session and process group whilst still using the POSIX spawn fast path. Tracking issue: rust-lang#105376
I've rebased and removed the commit I had to bump libc, as an upstream commit bumped the libc version for me. :) @m-ou-se, would you be able to take a look please? |
I believe this requires on ACP (adding a new unstable API). Please create one, if you haven't already. Then link it here and mark the PR as S-waiting-on-ACP. @rustbot label -S-waiting-on-review -A-meta -A-testsuite -T-infra +S-waiting-on-author |
Hey @pitaj, I'll create an ACP and then update this PR with the tags once that's done |
I've created the ACP: rust-lang/libs-team#184 @rustbot +S-waiting-on-ACP |
@rustbot label +S-waiting-on-acp -S-waiting-on-author |
☔ The latest upstream changes (presumably #117285) made this pull request unmergeable. Please resolve the merge conflicts. |
The ACP was accepted, rust-lang/libs-team#184 (comment), so this PR just needs to be refreshed. @rustbot author |
@@ -179,6 +179,9 @@ pub trait CommandExt: Sealed { | |||
/// ``` | |||
#[stable(feature = "process_set_process_group", since = "1.64.0")] | |||
fn process_group(&mut self, pgroup: i32) -> &mut process::Command; | |||
|
|||
#[unstable(feature = "process_setsid", issue = "105376")] | |||
fn setsid(&mut self) -> &mut process::Command; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the fn setsid(&mut self, setsid: bool) -> &mut Command
signature might be preferable - this is what we have for create_pidfd
force_quotes
and async_pipes
.
@HarveyHunt |
@HarveyHunt |
Add a setsid method to the CommandExt trait so that callers can create a process in a new session and process group whilst still using the POSIX spawn fast path.
Tracking issue: #105376
ACP: rust-lang/libs-team#184