Timeout::timeout fails when shelling out
----------------------------------------
Key: JRUBY-4443
URL: http://jira.codehaus.org/browse/JRUBY-4443
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: Linux 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16
14:04:26 UTC 2009 i686 GNU/Linux
JRuby-1.4
Reporter: spox
Priority: Minor
Timeout fails when a shell command is run within the timeout block. For
example:
{code:ruby}
require 'timeout'
begin
Timeout::timeout(1) do
`while [ true ]; do true; done;`
end
rescue Exception => boom
puts "Caught: #{boom}"
end
puts "completed"
{code}
Expected output:
{noformat}
Caught: execution expired
completed
{noformat}
Ruby 1.8.6-p383, 1.8.7-p248 and 1.9.1-p376 work as expected.
JRuby-1.4 runs forever until interrupted.
--
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