Process.waitpid garbles exitstatus
----------------------------------

                 Key: JRUBY-5886
                 URL: https://jira.codehaus.org/browse/JRUBY-5886
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.6.2, JRuby 1.7
         Environment: Linux host 2.6.32-5-openvz-amd64 #1 SMP Wed May 18 
23:53:57 UTC 2011 x86_64 GNU/Linux
Debian squeeze
OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
            Reporter: Christian Hofstädtler
         Attachments: test_waitpid.rb

Running programs with Process.spawn and then subsequently waiting for them with 
Process.waitpid garbles $?.exitstatus.

The demo program attached shows that the exitstatus is somehow random. When 
using "sleep", as in the demo program, this should always be 0.

Also, I'm seeing ECHILD errors when the subprocess finishes before waitpid is 
called, probably because the child is reaped too early/automatically?


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