Support base::LaunchOptions.current_directory when using posix_spawn on Mac.
This uses the undocumented pthread_chdir_np() to change the launching thread's PWD for the duration of the posix_spawn() syscall. There is no other way to change directories when using posix_spawn, other than an exec trampoline. Bug: 179923 Change-Id: Ic6ab10cd1cb5be2f008b434b3546c05f080ef9b1 Reviewed-on: https://chromium-review.googlesource.com/c/1311258Reviewed-by:Mark Mentovai <mark@chromium.org> Commit-Queue: Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#604799}
Showing
Please register or sign in to comment