Skip to content

Commit

Permalink
Add STDOUT.flush to make sure user got waiting message
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu authored and macournoyer committed Nov 5, 2009
1 parent 4fba063 commit c8e948a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/thin/controllers/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def restart
def wait_until_server_started(number)
tries = 0
log "Waiting for server to start ..."
STDOUT.flush # Need this to make sure user got the message

loop do
test_socket = (socket ? UNIXSocket.new(socket_for(number)) : TCPSocket.new("127.0.0.1", number)) rescue nil
Expand Down

0 comments on commit c8e948a

Please sign in to comment.