Skip to content

Windows: Fix buffer size of QueryInformationJobObject request #176

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

Merged
merged 1 commit into from
May 12, 2020

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented May 11, 2020

As noted in GHC #17926, the QueryInformationJobObject system call
apparently relies on the buffer size in addition to the
NumberOfAssignedProcesses field to determine how many results it should
return. For this reason it's important that we pass the true size of the
buffer to the call.

As noted in GHC #17926, the QueryInformationJobObject system call
apparently relies on the buffer size in addition to the
NumberOfAssignedProcesses field to determine how many results it should
return. For this reason it's important that we pass the true size of the
buffer to the call.
Copy link
Collaborator

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@snoyberg snoyberg merged commit c81932e into haskell:master May 12, 2020
@domenkozar
Copy link

Any chance to have a bugfix release?

@snoyberg
Copy link
Collaborator

Released

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

Successfully merging this pull request may close these issues.

3 participants