diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 21:24:47 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-13 21:24:47 +0000 |
commit | 15db0827104fad077d745d3a00aef336d7f63d17 (patch) | |
tree | 76fa4c456172f0381d28531cbb21257b41961e33 /base/process/launch.h | |
parent | 32250075ccfcedd35297dadddeab6248aca5e97e (diff) | |
download | chromium_src-15db0827104fad077d745d3a00aef336d7f63d17.zip chromium_src-15db0827104fad077d745d3a00aef336d7f63d17.tar.gz chromium_src-15db0827104fad077d745d3a00aef336d7f63d17.tar.bz2 |
GTTF: launch test processes using job objects on Windows.
This helps ensure proper termination of child processes when the launcher
gets killed.
BUG=236893
R=jar@chromium.org, sky@chromium.org
Review URL: https://codereview.chromium.org/23480061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223125 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process/launch.h')
-rw-r--r-- | base/process/launch.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/base/process/launch.h b/base/process/launch.h index 944c1bc..ac2df5e 100644 --- a/base/process/launch.h +++ b/base/process/launch.h @@ -164,12 +164,9 @@ BASE_EXPORT void CloseSuperfluousFds(const InjectiveMultimap& saved_map); #endif // defined(OS_POSIX) #if defined(OS_WIN) -// Set JOBOBJECT_EXTENDED_LIMIT_INFORMATION to JobObject |job_object|. -// As its limit_info.BasicLimitInformation.LimitFlags has -// JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE. -// When the provide JobObject |job_object| is closed, the binded process will -// be terminated. -BASE_EXPORT bool SetJobObjectAsKillOnJobClose(HANDLE job_object); +// Set |job_object|'s JOBOBJECT_EXTENDED_LIMIT_INFORMATION +// BasicLimitInformation.LimitFlags to |limit_flags|. +BASE_EXPORT bool SetJobObjectLimitFlags(HANDLE job_object, DWORD limit_flags); // Output multi-process printf, cout, cerr, etc to the cmd.exe console that ran // chrome. This is not thread-safe: only call from main thread. |