-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Close handle on signalEvent #9838
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
I got the CLA, any latency? |
jenkins, test this |
@andrewkroh Could you take a look? |
@wenhaochen Could you please rebase this on master to pull in some fixes that will make the CI testing start working on this PR. Assuming the tests continue to pass then this LGTM. Thanks. |
20a0ac3
to
257674e
Compare
@andrewkroh I have rebased on master, but still failed with test cases in auditbeat and metricbeat |
257674e
to
1840e0b
Compare
I have tried twice, passed eventually. |
jenkins, test this |
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. Thanks!
hi!
signalEvent not be closed, handle leak might happen when calling Open()func a lot,
it seems not hard to recurrent such issue,
and as discuss on https://discuss.elastic.co/t/signalevent-not-be-closed/157966
signalEvent actually not work as same function in microsoft docs,
so I just add "defer" here to free the handle, which works in my test env
I'm confused that is it necessary to add any test cases or comments for the Fix, since it's sample ...
thanks !