Skip to content
Snippets Groups Projects
Commit c9d83d39 authored by Martin Doerr's avatar Martin Doerr
Browse files

8325203: System.exit(0) kills the launched 3rd party application

Backport-of: b9ca2532287b02388cd6f9e69b02a86713fc5b88
parent 0cfee92c
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -241,7 +241,7 @@ void launchApp() {
}
JOBOBJECT_EXTENDED_LIMIT_INFORMATION jobInfo = { };
jobInfo.BasicLimitInformation.LimitFlags =
JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE;
JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE | JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK;
if (!SetInformationJobObject(jobHandle.get(),
JobObjectExtendedLimitInformation, &jobInfo, sizeof(jobInfo))) {
JP_THROW(SysError(tstrings::any() <<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment