зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1102195 Part 2: Re-apply pre-vista stdout/err process inheritance change to Chromium code after merge. r=tabraldes
Originally landed as changset: https://hg.mozilla.org/mozilla-central/rev/f94a07671389
This commit is contained in:
Родитель
a887f0edbd
Коммит
09607f7c35
|
@ -466,6 +466,14 @@ ResultCode BrokerServicesBase::SpawnTarget(const wchar_t* exe_path,
|
|||
// have limited which handles will be inherited.
|
||||
inherit_handles = true;
|
||||
}
|
||||
} else if (getenv("MOZ_WIN_INHERIT_STD_HANDLES_PRE_VISTA")) {
|
||||
// On pre-Vista versions even if we can't limit what gets inherited, we
|
||||
// sometimes want to inherit stdout/err for testing purposes.
|
||||
startup_info.startup_info()->dwFlags |= STARTF_USESTDHANDLES;
|
||||
startup_info.startup_info()->hStdInput = INVALID_HANDLE_VALUE;
|
||||
startup_info.startup_info()->hStdOutput = policy_base->GetStdoutHandle();
|
||||
startup_info.startup_info()->hStdError = policy_base->GetStderrHandle();
|
||||
inherit_handles = true;
|
||||
}
|
||||
|
||||
// Construct the thread pool here in case it is expensive.
|
||||
|
|
|
@ -2,7 +2,7 @@ Please add a link to the bugzilla bug and patch name that should be re-applied.
|
|||
Also, please update any existing links to their actual mozilla-central changeset.
|
||||
Note: security/sandbox/win/src has moved to security/sandbox/chromium/sandbox/win/src
|
||||
|
||||
https://hg.mozilla.org/mozilla-central/rev/365d1073111a
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1102195 bug1102195part2.patch
|
||||
https://hg.mozilla.org/mozilla-central/rev/0f763c186855
|
||||
https://hg.mozilla.org/mozilla-central/rev/c827c112df81
|
||||
https://hg.mozilla.org/mozilla-central/rev/7df8d6639971
|
||||
|
|
Загрузка…
Ссылка в новой задаче