waitpid should be supported on doze
-----------------------------------

                 Key: JRUBY-4354
                 URL: http://jira.codehaus.org/browse/JRUBY-4354
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.4
            Reporter: Roger Pack
            Assignee: Thomas E Enebo


This code fails in jruby on doze

require 'timeout'
out = nil
begin
  Timeout::timeout(ARGV[1].to_i) {
    out = IO.popen ARGV[2..-1].join(' ')
    Process.wait out.pid # <----- this line fails in jruby, not in MRI.
  }
rescue Timeout::Error
  puts 'timed out'
  Process.kill "KILL", out.pid
end


jruby: C:/dev/ruby/ruby-benchmark-suite/utils/timeout2.rb:16: waitpid 
unsupported on this platform (NotImplementedError)

ruby MRI works.
Thanks.
-r


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