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

r_session is leaking file descriptors #184

Closed
gaborcsardi opened this issue Mar 11, 2021 · 0 comments
Closed

r_session is leaking file descriptors #184

gaborcsardi opened this issue Mar 11, 2021 · 0 comments

Comments

@gaborcsardi
Copy link
Member

At least on Unix, possibly on Windows as well:

rs <- callr::r_session$new()

❯ rs$run(function() 1+1)
[1] 2rs$run(function() ps::ps_num_fds(ps::ps_handle()))
[1] 8rs$run(function() 1+1)
[1] 2rs$run(function() ps::ps_num_fds(ps::ps_handle()))
[1] 12

They are probably simply not closed in the post-hook.

gaborcsardi added a commit that referenced this issue Mar 11, 2021
Use dev processx to check that
#184 is fixed.
gaborcsardi added a commit that referenced this issue Mar 11, 2021
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

1 participant