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

Mark KQueue::Native#kevent as blocking with FFI #6

Merged
merged 1 commit into from
Feb 19, 2014

Conversation

robertgrimm
Copy link
Contributor

kevent is a blocking function and needs to be marked a such with FFI so it will release Ruby's global interpreter lock when calling it. Without this, calls to KQueue::Queue#run will hang the entire Ruby process, preventing other threads from running as well as preventing SIGINT/SIGTERM from being handled.

interpreter lock.  This prevents calls to KQueue::Queue#run from hanging
the process.
mat813 added a commit that referenced this pull request Feb 19, 2014
Mark KQueue::Native#kevent as blocking with FFI
@mat813 mat813 merged commit 82284eb into mat813:master Feb 19, 2014
@mat813
Copy link
Owner

mat813 commented Feb 19, 2014

Pushed 0.2.2 with this.

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.

None yet

2 participants