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

Large number of open files #1

Open
TCB13 opened this issue Dec 15, 2021 · 0 comments · May be fixed by #2
Open

Large number of open files #1

TCB13 opened this issue Dec 15, 2021 · 0 comments · May be fixed by #2

Comments

@TCB13
Copy link

TCB13 commented Dec 15, 2021

Hello,

If I try to instantiate this multiple times I'll get a ton of open files to my i2c:

lrwx------ 1 root root 64 Dec 15 11:56 14 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 15 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 16 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 17 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 18 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 19 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 2 -> /dev/tty60
lrwx------ 1 root root 64 Dec 15 11:56 20 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 21 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 22 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 23 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 24 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 25 -> /dev/i2c-2
lrwx------ 1 root root 64 Dec 15 11:56 26 -> /dev/i2c-2

Is there a way to properly destruct this so it will close all files? I tried del on the object without success.

Thank you.

@TCB13 TCB13 linked a pull request Dec 15, 2021 that will close this issue
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 a pull request may close this issue.

1 participant