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

Only close open file descriptors #103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrisburr
Copy link

@chrisburr chrisburr commented Jun 8, 2023

I've ran into issues using reproc inside containers due to the limit on the number of open file descriptors being more than 1024^2. I see the same issue has been seen by other people:

This PR removes the hard coded limit, though obviously that can make starting a subprocess extremely slow. To avoid this performance issue I've modified the code to only close open file descriptors when possible. I've tested this with macOS and Linux and it should be robust to other unix systems.

Do you have any thoughts on this approach?

cc @chaen

@chrisburr
Copy link
Author

I've ran the CI on my fork and found a couple of clang-tidy complaints which have now been fixed.

I've also committed b240861 which fixes the macOS CI.

@chrisburr
Copy link
Author

@DaanDeMeyer Do you have any thoughts on this? I see someone ended up debugging the same issue in #105.

chrisburr added a commit to chrisburr/reproc-feedstock that referenced this pull request Jul 17, 2023
chrisburr added a commit to chrisburr/reproc-feedstock that referenced this pull request Jul 17, 2023
@chaen
Copy link

chaen commented Aug 1, 2023

@DaanDeMeyer Is there anything missing in this PR for it to be reviewed ?

chrisburr added a commit to chrisburr/reproc-feedstock that referenced this pull request Oct 25, 2023
@AntoinePrv
Copy link

@DaanDeMeyer +1 for 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

3 participants