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

Do you think kill-on-job-close is needed? #1

Open
lbartnik opened this issue Nov 14, 2016 · 0 comments
Open

Do you think kill-on-job-close is needed? #1

lbartnik opened this issue Nov 14, 2016 · 0 comments

Comments

@lbartnik
Copy link

Hi, I'm trying to implement a similar extension for R and through trial and error I found that you need to annotate the newly created job as below to make sure Windows will actually kill all children of the new process. Can you comment on that?

JOBOBJECT_EXTENDED_LIMIT_INFORMATION info = { };
info.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE;
SetInformationJobObject(job_handle,
                      JobObjectExtendedLimitInformation,
                      &info, sizeof(info))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant