Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for CommandExt::before_exec #31398
Comments
alexcrichton
added
B-RFC-approved
T-libs
labels
Feb 4, 2016
This comment has been minimized.
This comment has been minimized.
|
I'm planning on giving this a shot this evening. |
This comment has been minimized.
This comment has been minimized.
|
@dirk oh sorry I should have mentioned that I'm working on implementing this. There's actually a good deal of refactoring I'd like to do at the same time, and I'm already halfway through it so far! |
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton: Oh, no worries! Thanks for replying so quickly. |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 4, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 4, 2016
alexcrichton
referenced this issue
Feb 4, 2016
Merged
Implement CommandExt::{exec, before_exec} #31409
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 4, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 5, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 7, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 7, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 9, 2016
bors
added a commit
that referenced
this issue
Feb 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 10, 2016
bors
added a commit
that referenced
this issue
Feb 10, 2016
bors
added a commit
that referenced
this issue
Feb 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 10, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Feb 10, 2016
bors
added a commit
that referenced
this issue
Feb 10, 2016
bors
added a commit
that referenced
this issue
Feb 10, 2016
alexcrichton
added
B-unstable
and removed
B-RFC-approved
labels
Feb 18, 2016
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton I am seeing test failures in Is this functionality only working for stage2 and higher? Or is there potentially some latent bug here that I should double check? |
This comment has been minimized.
This comment has been minimized.
|
Hm in theory the test should work for all stages, so seems suspicious that it's failing! Do you have some logs that I could look at? May be able to help diagnose what's happening in any case. |
alexcrichton
added
the
I-nominated
label
Mar 9, 2016
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton here is a gist of a run I did locally: https://gist.github.com/pnkfelix/aa878b372761f957a9d4
Running the test binary itself on its own by hand does not reproduce the issue, and the nature of the test makes it difficult to add |
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 7, 2016
alexcrichton
referenced this issue
Apr 7, 2016
Merged
std: Stabilize APIs for the 1.9 release #32804
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 7, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Apr 8, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 8, 2016
bors
added a commit
that referenced
this issue
Apr 9, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 11, 2016
bors
added a commit
that referenced
this issue
Apr 12, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 12, 2016
alexcrichton
removed
the
final-comment-period
label
Apr 13, 2016
alexcrichton
changed the title
Tracking issue for CommandExt::{exec, before_exec}
Tracking issue for CommandExt::before_exec
Apr 13, 2016
l0kod
added a commit
to stemjail/tty-rs
that referenced
this issue
Oct 1, 2016
This comment has been minimized.
This comment has been minimized.
|
Is it just the list of issues in your previous comment that need to be sorted out still? I've run into two cases recently where this API would have made my life easier (enabling ptrace for a child process with |
This comment has been minimized.
This comment has been minimized.
|
@luser yeah most of those are still relevant (I'll update the top comment), unfortunately. It could just be time though to declare "this is the way it'll be" |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge I personally feel that despite the drawbacks |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 1, 2016
•
|
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, 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. |
This comment has been minimized.
This comment has been minimized.
|
FWIW I implemented the ptrace case as a crate here using |
This comment has been minimized.
This comment has been minimized.
|
FYI tty-rs use |
This comment has been minimized.
This comment has been minimized.
mattgreen
commented
Nov 9, 2016
|
Looking forward to this landing in stable soon. Most users don't need it, but when you do, it's really useful. watchexec uses it to create a new process group when launching processes on non-Windows OSes. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 12, 2016
|
psst @alexcrichton, I wasn't able to add the |
alexcrichton
added
the
final-comment-period
label
Nov 12, 2016
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 22, 2016
|
The final comment period is now complete. |
alexcrichton commentedFeb 4, 2016
•
edited
Open questions:
Send+Syncon the closure need to be documented and are "somewhat odd"Stdio::piped()for any of the stdio handles because they'll immediately close the other half of the pipe (via CLOEXEC).This is a tracking issue for rust-lang/rfcs#1359.