Skip to content

Fixed SEGFAULT when calling remove_event_detect() and added epoll_ctl() return code handling #257

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 4 commits into from
Jun 26, 2018

Conversation

zserg8
Copy link

@zserg8 zserg8 commented May 30, 2018

Hi!
This is a follow-up for the PR #233 - as the library uses 2-tier system for callbacks and #233 patched only one place, it still kept crashing on rare occasions. I implemented the same approach to work around it.
Besides that, I made more elaborated the syslogged error messages from epoll_ctl() to make it easier to understand what the problem might be. epoll_ctl() has around 15 different return error codes, before this PR the library just reported general error without any details. Now it actually logs the epoll_ctl() error code, if any.

* Added more elaborate epoll() error logging
* Added comments
* Added debug logging
* Line 724 - now <initial> flag is properly reset upon removal of event detection from GPIO pin
@pdp7 pdp7 self-assigned this Jun 5, 2018
@pdp7
Copy link
Collaborator

pdp7 commented Jun 5, 2018

@zsserg thanks for creating this pull request! I will test out and merge if no issues.

@pdp7 pdp7 merged commit dc24ebf into adafruit:master Jun 26, 2018
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.

2 participants