Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
how can i find lingering file descriptors?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="ara.t.howard, post: 4618749"] you can list them all with something like limit = 8192 files = Array.new(limit){|i| IO.for_fd(i) rescue nil}.compact.map{| io| io.fileno} p files this probably opens a file or pipe this too possibly you are using the gem properly. you should attempt to track down the open files with something like this in the forkoff block ios = Array.new(8192){|i| IO.for_fd(i) rescue nil}.compact filenos = ios.map{|io| io.fileno} paths = ios.map{|io| io.path rescue nil} STDERR.puts "child : #{ Process.pid }" STDERR.puts "filenos : #{ filenos.inspect }" STDERR.puts "paths : #{ paths.inspect }" STDIN.gets i just releases version 0.0.4 of forkoff. should not affect your issue, but might want to install anyhow (just pushed to rubyforge - might have to wait for it propagate or grab the gem from there manually) cheers. a @ [URL]http://codeforpeople.com/[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
how can i find lingering file descriptors?
Top