UNIXSocket file descriptor leak
-------------------------------

                 Key: JRUBY-3448
                 URL: http://jira.codehaus.org/browse/JRUBY-3448
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.4
            Reporter: Clay McClure


irb(main):001:0> require 'socket'
=> true
irb(main):002:0> UNIXSocket.open('')
SystemCallError: Unknown error 111 -
        from (irb):4:in `binding'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:150:in `eval_input'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:259:in 
`signal_status'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:147:in `eval_input'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:146:in `eval_input'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:70:in `start'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:69:in `catch'
        from /home/advocacy/jruby-1.1.4/lib/ruby/1.8/irb.rb:69:in `start'
        from /home/advocacy/jruby/bin/jirb:19

causes a file descriptor leak, as the socket returned by socket(2) is not 
closed when the subsequent bind(2) fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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