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

cds - too many file descriptors? #66

Closed
aryarm opened this issue Jun 2, 2018 · 3 comments
Closed

cds - too many file descriptors? #66

aryarm opened this issue Jun 2, 2018 · 3 comments
Assignees
Labels

Comments

@aryarm
Copy link
Collaborator

aryarm commented Jun 2, 2018

I ran into this error using cds:

-bash: redirection error: cannot duplicate fd: Too many open files
-bash: /dev/null: Too many open files

Is the problem reproducible? Try keeping terminal open for a couple days and using cds a lot.
Maybe WSL isn't properly removing file descriptors?

In any case, the problem went away as soon as I closed the terminal and reopened it. It seems kinda obscure. I haven't run into it a second time.

@aryarm aryarm self-assigned this Jun 2, 2018
@aryarm aryarm added the bug label Jun 2, 2018
@aryarm
Copy link
Collaborator Author

aryarm commented Jun 17, 2018

a quick look into how I should be closing file descriptors led me to this page, which explains that both <&- and >&- syntax work to close file descriptors, so I don't think I'm doing anything wrong in that arena

@aryarm
Copy link
Collaborator Author

aryarm commented Jun 17, 2018

If it isn't cds's fault, it could be happening because other scripts are creating file descriptors and forgetting to close them (or perhaps only one script that's being run multiple times).

@aryarm
Copy link
Collaborator Author

aryarm commented Jul 4, 2019

it's been more than a year and I've never run into this problem a second time

even if it is a problem with cds, I have no way of reproducing it, so I'll close this for now

@aryarm aryarm closed this as completed Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant