Skip to content

Use posix_spawn_file_actions_addchdir_np when possible - #58438

Merged
bors merged 1 commit into
rust-lang:masterfrom
cuviper:posix_spawn_file_actions_addchdir_np
Feb 17, 2019
Merged

Use posix_spawn_file_actions_addchdir_np when possible#58438
bors merged 1 commit into
rust-lang:masterfrom
cuviper:posix_spawn_file_actions_addchdir_np

Conversation

@cuviper

Copy link
Copy Markdown
Member

This is a non-POSIX extension implemented in Solaris and in glibc 2.29.
With this we can still use posix_spawn() when Command::current_dir()
has been set, otherwise we fallback to fork(); chdir(); exec().

This is a non-POSIX extension implemented in Solaris and in glibc 2.29.
With this we can still use `posix_spawn()` when `Command::current_dir()`
has been set, otherwise we fallback to `fork(); chdir(); exec()`.
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @rkruppe

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 13, 2019
@hanna-kruppe

hanna-kruppe commented Feb 13, 2019

Copy link
Copy Markdown
Contributor

LGTM but I have no experience with the relevant C APIs or with the parts of libstd that wrap them, so I'd appreciate a second look from someone more qualified.

@cuviper

Copy link
Copy Markdown
MemberAuthor

OK, then as the reviewer of #48624...

r? @alexcrichton

@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

Nice!

@bors

bors commented Feb 14, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit a301655 has been approved by alexcrichton

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 14, 2019
Centril added a commit to Centril/rust that referenced this pull request Feb 14, 2019
…dchdir_np, r=alexcrichton
Use posix_spawn_file_actions_addchdir_np when possible
This is a non-POSIX extension implemented in Solaris and in glibc 2.29.
With this we can still use `posix_spawn()` when `Command::current_dir()`
has been set, otherwise we fallback to `fork(); chdir(); exec()`.
@CentrilCentril mentioned this pull request Feb 14, 2019
@kennytmkennytm mentioned this pull request Feb 15, 2019
kennytm added a commit to kennytm/rust that referenced this pull request Feb 16, 2019
…dchdir_np, r=alexcrichton
Use posix_spawn_file_actions_addchdir_np when possible
This is a non-POSIX extension implemented in Solaris and in glibc 2.29.
With this we can still use `posix_spawn()` when `Command::current_dir()`
has been set, otherwise we fallback to `fork(); chdir(); exec()`.
bors added a commit that referenced this pull request Feb 16, 2019
Rollup of 19 pull requests
Successful merges:
- #57929 (Rustdoc remove old style files)
- #57981 (Fix#57730)
- #58074 (Stabilize slice_sort_by_cached_key)
- #58196 (Add specific feature gate error for const-unstable features)
- #58293 (Remove code for updating copyright years in generate-deriving-span-tests)
- #58306 (Don't default on std crate when manipulating browser history)
- #58359 (librustc_mir: use ? in impl_snapshot_for! macro)
- #58395 (Instant::checked_duration_since)
- #58429 (fix Box::into_unique effecitvely transmuting to a raw ptr)
- #58433 (Update which libcore/liballoc tests Miri ignores, and document why)
- #58438 (Use posix_spawn_file_actions_addchdir_np when possible)
- #58440 (Whitelist the ARM v6 target-feature)
- #58448 (rustdoc: mask `compiler_builtins` docs)
- #58468 (split MaybeUninit into several features, expand docs a bit)
- #58477 (Fix the syntax error in publish_toolstate.py)
- #58479 (compile-pass test for #53606)
- #58489 (Fix runtime error in generate-keyword-tests)
- #58496 (Fix documentation for std::path::PathBuf::pop)
- #58509 (Notify myself when Clippy toolstate changes)
bors added a commit that referenced this pull request Feb 17, 2019
Rollup of 19 pull requests
Successful merges:
- #57929 (Rustdoc remove old style files)
- #57981 (Fix#57730)
- #58074 (Stabilize slice_sort_by_cached_key)
- #58196 (Add specific feature gate error for const-unstable features)
- #58293 (Remove code for updating copyright years in generate-deriving-span-tests)
- #58306 (Don't default on std crate when manipulating browser history)
- #58359 (librustc_mir: use ? in impl_snapshot_for! macro)
- #58395 (Instant::checked_duration_since)
- #58429 (fix Box::into_unique effecitvely transmuting to a raw ptr)
- #58433 (Update which libcore/liballoc tests Miri ignores, and document why)
- #58438 (Use posix_spawn_file_actions_addchdir_np when possible)
- #58440 (Whitelist the ARM v6 target-feature)
- #58448 (rustdoc: mask `compiler_builtins` docs)
- #58468 (split MaybeUninit into several features, expand docs a bit)
- #58479 (compile-pass test for #53606)
- #58489 (Fix runtime error in generate-keyword-tests)
- #58496 (Fix documentation for std::path::PathBuf::pop)
- #58509 (Notify myself when Clippy toolstate changes)
- #58521 (Fix tracking issue for error iterators)
@bors
bors merged commit a301655 into rust-lang:masterFeb 17, 2019
@cuviper
cuviper deleted the posix_spawn_file_actions_addchdir_np branch March 27, 2019 22:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@cuviper@rust-highfive@hanna-kruppe@alexcrichton@bors