Commit 1bcad90d authored by Yngve N. Pettersen's avatar Yngve N. Pettersen Committed by Commit Bot

GN: Force normal subprocess task priority on Windows

In some cases, at least when starting as a scheduled task, Windows
subprocesses are started with a very low priority. Therefore, force
normal process priority when starting a subprocess.

R=dpranke@chromium.org

Change-Id: Ib9e8f9bb1f6d06cffeeab3694508df9e755f8a19
Reviewed-on: https://chromium-review.googlesource.com/941229Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Yngve Pettersen <yngve@vivaldi.com>
Cr-Commit-Position: refs/heads/master@{#540349}
parent a3ec9fb7
......@@ -93,7 +93,7 @@ bool ExecProcess(const base::CommandLine& cmdline,
&cmdline_str[0],
nullptr, nullptr,
TRUE, // Handles are inherited.
0, nullptr,
NORMAL_PRIORITY_CLASS, nullptr,
startup_dir.value().c_str(),
&start_info, &temp_process_info)) {
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment