Make sure the new instance inherite cwd on mac

This commit is contained in:
Cheng Zhao 2016-06-02 20:32:29 +09:00
parent 0646f6ea9e
commit 0d066de53e
5 changed files with 18 additions and 96 deletions

View file

@ -65,11 +65,10 @@ void RelauncherSynchronizeWithParent() {
}
int LaunchProgram(const StringVector& relauncher_args,
const StringType& program,
const StringVector& args) {
const StringVector& argv) {
base::LaunchOptions options;
base::Process process = base::LaunchProcess(
program + L" " + base::JoinString(args, L" "), options);
base::Process process =
base::LaunchProcess(base::JoinString(args, L" "), options);
return process.IsValid() ? 0 : 1;
}