Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JOB_OBJECT_LIMIT_BREAKAWAY_OK #5283

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

obi458
Copy link
Contributor

@obi458 obi458 commented Oct 12, 2021

Sometimes we want to break out, for example to start programs in another windows session.

https://docs.microsoft.com/en-us/windows/win32/api/jobapi2/nf-jobapi2-createjobobjectw

All processes associated with a job must run in the same session.
A job is associated with the session of the first process to be assigned to the job.

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2021

CLA assistant check
All committers have signed the CLA.

@obi458 obi458 closed this Oct 12, 2021
@obi458 obi458 reopened this Oct 12, 2021
@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Oct 15, 2021
@sverker sverker added enhancement testing currently being tested, tag is used by OTP internal CI labels Oct 25, 2021
@sverker
Copy link
Contributor

sverker commented Dec 9, 2021

@obi458 Sorry for letting this PR brew for so long. It would be good however if it could be complemented with

@sverker sverker merged commit 9e38112 into erlang:master Feb 11, 2022
@sverker
Copy link
Contributor

sverker commented Feb 11, 2022

@obi458 Could you contribute something to write in the release note.

@obi458
Copy link
Contributor Author

obi458 commented Feb 25, 2022

@obi458 Could you contribute something to write in the release note.

The erlang service in Windows is running as locale system and runs on session 0. If you want so start a new child process in Erlang with a different session number than 0, e.g. session 1 which belongs to a logged in user in Windows itself, the JOB_OBJECT_LIMIT_BREAKAWAY_OK is needed in the erlang service.
Therefore it is necessary to apply the JOB_OBJECT_LIMIT_BREAKAWAY_OK in the erlang service to be able to start a child process with a different session number in windows.
Without applying JOB_OBJECT_LIMIT_BREAKAWAY_OK you are not able to start a child process, the create process would fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants