Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HarveyHunt
Copy link

@HarveyHunt HarveyHunt commented Dec 6, 2022

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

@rustbot
Copy link
Collaborator

rustbot commented Dec 6, 2022

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.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Dec 6, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 6, 2022

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@HarveyHunt
Copy link
Author

@rustbot label +T-libs-api -T-libs

@rustbot rustbot added T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. and removed T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Dec 6, 2022
@rust-log-analyzer

This comment has been minimized.

@HarveyHunt
Copy link
Author

The CI failures are caused by using libc version 0.2.137. I added the POSIX_SPAWN_SETSID flag in this PR, which is only available in v 0.2.138.

Is there another cargo file I need to update?

@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) A-meta Area: Issues about the rust-lang/rust repository. A-testsuite Area: The testsuite used to check the correctness of rustc T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Dec 7, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 7, 2022

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

The Miri subtree was changed

cc @rust-lang/miri

Some changes occurred in const_evaluatable.rs

cc @BoxyUwU

@HarveyHunt
Copy link
Author

I've updated a couple of Cargo.lock files that still had libc 0.2.137 specified, hopefully that's enough to get the CI working.

Sorry for the noise generated by rustbot, I accidentally included some commits from master in my force push.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Dec 29, 2022

☔ 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
@HarveyHunt
Copy link
Author

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?

@rustbot rustbot removed the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Jan 18, 2023
@pitaj
Copy link
Contributor

pitaj commented Jan 29, 2023

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

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. A-meta Area: Issues about the rust-lang/rust repository. A-testsuite Area: The testsuite used to check the correctness of rustc labels Jan 29, 2023
@rustbot rustbot removed the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Jan 29, 2023
@HarveyHunt
Copy link
Author

Hey @pitaj, I'll create an ACP and then update this PR with the tags once that's done

@HarveyHunt
Copy link
Author

I've created the ACP: rust-lang/libs-team#184

@rustbot +S-waiting-on-ACP

@pitaj
Copy link
Contributor

pitaj commented Feb 27, 2023

@rustbot label +S-waiting-on-acp -S-waiting-on-author

@rustbot rustbot added S-waiting-on-ACP Status: PR has an ACP and is waiting for the ACP to complete. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 27, 2023
@workingjubilee workingjubilee added the A-process Area: std::process and std::env label Jul 30, 2023
@bors
Copy link
Contributor

bors commented Jan 13, 2024

☔ The latest upstream changes (presumably #117285) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 13, 2024
@Dylan-DPC Dylan-DPC removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-process Area: std::process and std::env S-waiting-on-ACP Status: PR has an ACP and is waiting for the ACP to complete. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants