Thread.current file descriptors are not closed after thread exit
----------------------------------------------------------------

                 Key: JRUBY-6156
                 URL: https://jira.codehaus.org/browse/JRUBY-6156
             Project: JRuby
          Issue Type: Bug
         Environment: 64-bit Ubuntu 10.04, JRuby 1.6.5, Sun JDK 1.6.0_26, 
padrino 0.10.5
            Reporter: Adam Zell
            Assignee: Thomas E Enebo


The Padrino logger logic looks like:

  def self.logger
    Padrino::Logger.setup! if Thread.current[:padrino_logger].nil?
    Thread.current[:padrino_logger]
  end

In the attachment, I create a number of threads each of which allocates a 
logger object.  After the threads have been joined, the file descriptors are 
still open.  I verified this by looking in /proc/<pid>/fd and seeing which ones 
point to "production.log".


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to