lib/daemons/application_group.rb
# Block until all unix_pids are gone (should be wrapped in a timeout)
Block until all unix_pids are gone (should be wrapped in a timeout)
Block until all unix_pids are gone ( should be wrapped in a timeout )
def block_on_pids(wait, debug, sleepy_time = 1)
      started_at = Time.now
      num_pids = unix_pids.size
      while num_pids > 0
        time_left = wait - (Time.now - started_at)
        puts "[daemons_ext]: Waiting #{time_left.round} secs on " +
              "#{num_pids} #{app_name}(s)..."
        unix_pids.each {|pid| puts "\t#{pid}"} if debug
        STDOUT.flush
        sleep sleepy_time
        num_pids = unix_pids.size
      end 
    end
def block_on_pids ( wait , debug , sleepy_time = 1 ) started_at = Time . now num_pids = unix_pids . size while num_pids > 0 time_left = wait - ( Time . now - started_at ) puts "[daemons_ext]: Waiting #{time_left.round} secs on " + "#{num_pids} #{app_name}(s)..." unix_pids . each { | pid | puts "\t#{pid}" } if debug STDOUT . flush sleep sleepy_time num_pids = unix_pids . size end end
Block until all unix_pids are gone (should be wrapped in a timeout)
Block until all unix_pids are gone ( should be wrapped in a timeout )
wait
<not_specific>
debug
<not_specific>
sleepy_time
<not_specific>