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

improve shouldAcceptRequest #750

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

timotheecour
Copy link
Owner

@timotheecour timotheecour commented Jun 5, 2021

refs https://github.com/nim-lang/Nim/pull/16599/files#r553011143

is there a way to wait until a FD is closed to avoid a forced wait?

refs nim-lang#16603
refs nim-lang#18161
refs https://github.com/nim-lang/Nim/pull/16599/files#r552201712
refs nim-lang/RFCs#382

notes

Exploring /proc (which is what lsof does under the hood) is as good as it gets. /proc is the Linux API to get information about processes.

on windows

on osx

lsof -p $pid + filter by FD column

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.

1 participant