]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #58438 - cuviper:posix_spawn_file_actions_addchdir_np, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Fri, 15 Feb 2019 16:55:56 +0000 (00:55 +0800)
committerkennytm <kennytm@gmail.com>
Sat, 16 Feb 2019 06:11:47 +0000 (14:11 +0800)
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()`.


Trivial merge