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

GPIO.cpp anon_inode leak #5

Open
engineeringleague opened this issue May 5, 2016 · 1 comment
Open

GPIO.cpp anon_inode leak #5

engineeringleague opened this issue May 5, 2016 · 1 comment

Comments

@engineeringleague
Copy link

Hi

I have found a issue when using the gpio.waitForEdge() method from the GPIO class. It gives me a Too many files error after the configured linux open files limit when using the method in a loop. I used lsof and detected a lot of anon_inodes. I thought this has to be a problem with epoll. It turned out that the close(epollfd) before close(fd) in waitForEdge() was missing.

Best regards
Tom

@bliedblad
Copy link

I second the motion...
I ran across this issue independently and fixed with close(epollfd).
Came here to the issues tab to share my findings, but @engineeringleague beat me to it.

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

No branches or pull requests

2 participants