Kernel#exit does not work from within Thread
--------------------------------------------

                 Key: JRUBY-2315
                 URL: http://jira.codehaus.org/browse/JRUBY-2315
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Martin Krauskopf
            Priority: Critical
             Fix For: JRuby 1.1RC3


{code}
a = Thread.new do
  loop do
    sleep 1
    puts "Hi"
  end
end

b = Thread.new do
  sleep 3
  puts "Calling exit..."
  Kernel.exit(1)
  puts "  done"
end

a.join
b.join
{code}

In JRuby 1.1RC2, blows out completely. In trunk, silently ignore Kernel#exit 
call.

Might be cause for our issue:
http://www.netbeans.org/nonav/issues/show_bug.cgi?id=129049

If you join threads in opposite order it works (probably irrelevant note wrt. 
this issue).

-- 
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