Process::Status#exitstatus does not return correct exit status
--------------------------------------------------------------

                 Key: JRUBY-5687
                 URL: http://jira.codehaus.org/browse/JRUBY-5687
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6
            Reporter: Aman Gupta
            Assignee: Thomas E Enebo


ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.5.0]
{noformat}
> require 'spoon'
> pid = Spoon.spawnp('false')
 => 49341
> Process.waitpid(pid)
> $?.to_i
 => 256
> $?.exitstatus
 => 1
{noformat}

jruby 1.6.0 (ruby 1.8.7 patchlevel 330) (2011-03-15 f3b6154) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
{noformat}
> pid = Spoon.spawnp('false')
 => 49830
> Process.waitpid(pid)
> $?.to_i
 => 65536
> $?.exitstatus
 => 256
{noformat}


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