Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Issue 1546313002: Conditionally set CREATE_BREAKAWAY_FROM_JOB when job objects are used. (Closed)

Created:
4 years, 11 months ago by Raphael Kubo da Costa (rakuco)
Modified:
4 years, 11 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This bit of code was added in 2010 by commit 66ae36fec ("Restricting lifetime of python sync server on Windows via a JobObject"). The rationale at the time was that running a test case under a debugger would associate all new processes with the debugger's job object. Since 2010, Windows 8 and others have been releases, all of which support nested jobs and do not require processes to be created with the CREATE_BREAKAWAY_FROM_JOB. Not only that, but unconditionally setting that flag prevents browser tests from the Windows Task Scheduler at least on Windows 8 and later: the Task Scheduler creates a job object to launch the test(s), and calling CreateProcess() with that flag resulted in an access denied error (error number 5). Not setting it allows children processes to be created and attached to new job objects in addition to the Task Scheduler one. TEST=interactive_ui_tests, content_browsertests from the Windows Task Scheduler (set the task to only run when the user is logged in, otherwise the processes are launched from session 0) R=phajdan.jr@chromium.org,scottmg@chromium.org,maruel@chromium.org,mark@chromium.org Committed: https://crrev.com/7db06605487dac6489f1248db2f1e3021477262a Cr-Commit-Position: refs/heads/master@{#367897}

Patch Set 1 #

Patch Set 2 : Patch v2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M base/process/launch_win.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Raphael Kubo da Costa (rakuco)
PTAL. This was originally discussed here: https://groups.google.com/a/chromium.org/d/msg/infra-dev/uQ0JUVktgxA/tukvyPOFDQAJ
4 years, 11 months ago (2016-01-04 13:51:48 UTC) #3
cpu_(ooo_6.6-7.5)
lgtm
4 years, 11 months ago (2016-01-06 17:32:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1546313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1546313002/20001
4 years, 11 months ago (2016-01-06 19:43:00 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-06 20:38:33 UTC) #8
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 20:40:01 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7db06605487dac6489f1248db2f1e3021477262a
Cr-Commit-Position: refs/heads/master@{#367897}

Powered by Google App Engine
This is Rietveld 408576698