< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #4681 has been updated by Motohiro KOSAKI.
Status changed from Assigned to Rejected
I think Eric described the reason and workaround at commetn#1. IOW, it's spec unfortunately.
----------------------------------------
Bug #4681: Timeout.timeout doesn't actually time out?
http://redmine.ruby-lang.org/issues/4681
Author: mathew murphy
Status: Rejected
Priority: Normal
Assignee: Akira Tanaka
Category:
Target version: 1.9.3
ruby -v: 1.9.2p180
Documentation for Timeout says "A way of performing a potentially long-running operation in a thread, and terminating its execution if it hasn???t finished by a fixed amount of time."
This doesn't actually seem to be what it does.
Example code:
#!/usr/bin/ruby
# encoding: UTF-8
require 'open3'
require 'timeout'
puts "Time out after 2 seconds. Count them..."
result = Timeout.timeout(2) do
stdin, stdout, stderr = Open3.capture3("sleep 30")
output = stdout.read + "\n" + stderr.read
end
On my systems, this doesn't time out after 2 seconds. Instead, it runs for 30 seconds, and then throws an error saying it took longer than 2 seconds.
--
http://redmine.ruby-lang.org