-
Notifications
You must be signed in to change notification settings - Fork 276
Update JOB_OBJECT_ALL_ACCESS and OpenJobObject
#2095
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
Conversation
Update `JOB_OBJECT_ALL_ACCESS` value to the most recent one. Update `winapi.OpenJobObject` to accept `inheritHandle` as `bool` as the documentation suggests. Signed-off-by: Maksim An <maksiman@microsoft.com>
|
What is the documentation that suggests we change to passing |
I wanted to make sure that the type matches to what's in the docs: https://learn.microsoft.com/en-us/windows/win32/api/jobapi2/nf-jobapi2-openjobobjectw. The underlying syscall doesn't change, and with the change we won't need to convert |
|
It looks like the syscall code handles this just fine. Just wanted to be clear that in general, Windows |
kevpar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Update `JOB_OBJECT_ALL_ACCESS` value to the most recent one. Update `winapi.OpenJobObject` to accept `inheritHandle` as `bool`. The underlying syscall stays the same, but this allows cleaner calls from go's perspective as it avoids `bool` to `uint32` casting. Signed-off-by: Maksim An <maksiman@microsoft.com>
Update `JOB_OBJECT_ALL_ACCESS` value to the most recent one. Update `winapi.OpenJobObject` to accept `inheritHandle` as `bool`. The underlying syscall stays the same, but this allows cleaner calls from go's perspective as it avoids `bool` to `uint32` casting. Signed-off-by: Maksim An <maksiman@microsoft.com> (cherry picked from commit 42671b4) Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
Update `JOB_OBJECT_ALL_ACCESS` value to the most recent one. Update `winapi.OpenJobObject` to accept `inheritHandle` as `bool`. The underlying syscall stays the same, but this allows cleaner calls from go's perspective as it avoids `bool` to `uint32` casting. Signed-off-by: Maksim An <maksiman@microsoft.com> (cherry picked from commit 42671b4) Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
Update
JOB_OBJECT_ALL_ACCESSvalue to the most recent one.Update
winapi.OpenJobObjectto acceptinheritHandleasboolas the documentation suggests.