"exit 0" not causing expected behaviour.
----------------------------------------

                 Key: JRUBY-1650
                 URL: http://jira.codehaus.org/browse/JRUBY-1650
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1b1
         Environment: mac osx tiger, java build 1.6.0-dp-b88-34
            Reporter: simon jenkins
            Assignee: Thomas E Enebo


Putting the following in a script and running it causes the application to 
block without exiting as expected.  

require 'java'
frame = javax.swing.JFrame.new
frame.show
puts "forcing exit"
exit 0

I think the problem exists because the main method in the Main.java class only 
explicitly calls System.exit if a status of non 0 is returned.

 public static void main(String[] args) {
        Main main = new Main();
        int status = main.run(args);
        System.err.println("exit value is " + status);
        if (status != 0) {
            System.exit(status);
        }
    }


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