Parent

Class Index [+]

Quicksearch

Net::SSH::Compat

This class contains miscellaneous patches and workarounds for different ruby implementations.

Constants

SELECT_MUTEX

Public Class Methods

io_select(*params) click to toggle source
    # File lib/net/ssh/ruby_compat.rb, line 29
29:       def self.io_select(*params)
30:         IO.select(*params)
31:       end
io_select(*params) click to toggle source
    # File lib/net/ssh/ruby_compat.rb, line 34
34:       def self.io_select(*params)
35:         # It should be safe to wrap calls in a mutex when the timeout is 0
36:         # (that is, the call is not supposed to block).
37:         # We leave blocking calls unprotected to avoid causing deadlocks.
38:         # This should still catch the main case for Capistrano users.
39:         if params[3] == 0
40:           SELECT_MUTEX.synchronize do
41:             IO.select(*params)
42:           end
43:         else
44:           IO.select(*params)
45:         end
46:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.