]> git.lizzy.rs Git - rust.git/commit
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)
commit50f3c81c0ecb875d45ac25a771c1bb3c61ff9eba
tree8559a9a55a2fc5d09bcc1a005815e2c5454cdc08
parent0fecb6d97d0b548a2b3d23f30f384b13d4a9251e
parenta301655c8aed20e5cea9a062663820fc29c5e80c
Rollup merge of #58438 - cuviper:posix_spawn_file_actions_addchdir_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()`.