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

RFC: Add a process_group method to UNIX CommandExt #3228

Merged
merged 3 commits into from
Jun 12, 2022

Conversation

krallin
Copy link
Contributor

@krallin krallin commented Feb 2, 2022

Add a process_group method to std::os::unix::process::CommandExt that
allows setting the process group id (i.e. calling setpgid) in the child, thus
enabling users to set process groups while leveraging the posix_spawn fast
path.

Rendered

@krallin krallin changed the title Add a process_group method to UNIX CommandExt RFC: Add a process_group method to UNIX CommandExt Feb 2, 2022
@krallin krallin marked this pull request as ready for review February 2, 2022 19:58
@ehuss ehuss added the T-libs-api Relevant to the library API team, which will review and decide on the RFC. label Feb 3, 2022
@krallin
Copy link
Contributor Author

krallin commented Feb 3, 2022

For reference, this is what the implementation could look like:

krallin/rust@efa2892

@joshtriplett
Copy link
Member

Seems entirely reasonable to me. Strictly speaking, this is the kind of change we don't typically require a full RFC for, but since you have one...

@rfcbot merge

@rfcbot
Copy link
Collaborator

rfcbot commented Feb 10, 2022

Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot rfcbot added proposed-final-comment-period Currently awaiting signoff of all team members in order to enter the final comment period. disposition-merge This RFC is in PFCP or FCP with a disposition to merge it. labels Feb 10, 2022
@joshtriplett
Copy link
Member

@krallin In parallel with the RFC, if you take the branch you linked to, file a tracking issue, and update your branch to use that tracking issue, I'd be happy to r+ it as a PR.

@krallin
Copy link
Contributor Author

krallin commented Feb 10, 2022

@joshtriplett Thanks for reviewing!

Indeed, I wasn't sure if I needed a RFC, it seemed like public API changes would always require one!

I opened the tacking issue: rust-lang/rust#93857

And submitted the PR: rust-lang/rust#93858

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2022
…shtriplett

Add a `process_group` method to UNIX `CommandExt`

- Tracking issue: rust-lang#93857
- RFC: rust-lang/rfcs#3228

Add a `process_group` method to `std::os::unix::process::CommandExt` that
allows setting the process group id (i.e. calling `setpgid`) in the child, thus
enabling users to set process groups while leveraging the `posix_spawn` fast
path.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 11, 2022
…shtriplett

Add a `process_group` method to UNIX `CommandExt`

- Tracking issue: rust-lang#93857
- RFC: rust-lang/rfcs#3228

Add a `process_group` method to `std::os::unix::process::CommandExt` that
allows setting the process group id (i.e. calling `setpgid`) in the child, thus
enabling users to set process groups while leveraging the `posix_spawn` fast
path.
@pickfire
Copy link
Contributor

Missing rendered url.

@rfcbot rfcbot added the final-comment-period Will be merged/postponed/closed in ~10 calendar days unless new substational objections are raised. label Feb 16, 2022
@rfcbot
Copy link
Collaborator

rfcbot commented Feb 16, 2022

🔔 This is now entering its final comment period, as per the review above. 🔔

@rfcbot rfcbot removed the proposed-final-comment-period Currently awaiting signoff of all team members in order to enter the final comment period. label Feb 16, 2022
@rfcbot rfcbot added finished-final-comment-period The final comment period is finished for this RFC. and removed final-comment-period Will be merged/postponed/closed in ~10 calendar days unless new substational objections are raised. labels Feb 26, 2022
@rfcbot
Copy link
Collaborator

rfcbot commented Feb 26, 2022

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

This will be merged soon.

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 1, 2022
…olnay

Add a `process_group` method to UNIX `CommandExt`

- Tracking issue: rust-lang#93857
- RFC: rust-lang/rfcs#3228

Add a `process_group` method to `std::os::unix::process::CommandExt` that
allows setting the process group id (i.e. calling `setpgid`) in the child, thus
enabling users to set process groups while leveraging the `posix_spawn` fast
path.
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 1, 2022
…olnay

Add a `process_group` method to UNIX `CommandExt`

- Tracking issue: rust-lang#93857
- RFC: rust-lang/rfcs#3228

Add a `process_group` method to `std::os::unix::process::CommandExt` that
allows setting the process group id (i.e. calling `setpgid`) in the child, thus
enabling users to set process groups while leveraging the `posix_spawn` fast
path.
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Mar 19, 2022
…olnay

Add a `process_group` method to UNIX `CommandExt`

- Tracking issue: rust-lang#93857
- RFC: rust-lang/rfcs#3228

Add a `process_group` method to `std::os::unix::process::CommandExt` that
allows setting the process group id (i.e. calling `setpgid`) in the child, thus
enabling users to set process groups while leveraging the `posix_spawn` fast
path.
@joshtriplett joshtriplett merged commit da0f86f into rust-lang:master Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disposition-merge This RFC is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC. to-announce
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants