open3 and timeout - warning: fork terminates thread

From: Daniel Berger <djberge@...>
Date: 2004-05-25 14:29:31 UTC
List: ruby-core #2949
Hi all,

ruby 1.8.2 (2004-05-22) [sparc-solaris2.9]

I noticed that if I try this:

require "timeout"
require "open3"

host = "www.ruby-lang.org"
Timeout::timeout(10){
   fin,fout,ferr = Open3.popen3("ping #{host} 1")
}

I get a warning:

/opt/lib/ruby/1.8/open3.rb:20: warning: fork terminates thread at
/opt/lib/ruby/1.8/timeout.rb:41

How should this be handled?

Regards,

Dan

In This Thread

Prev Next