diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-19 16:40:53 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-19 16:40:53 +0000 |
commit | 5da4c397826b26368efdd0eefc433f990bc90345 (patch) | |
tree | eceef21a5359413c24d947eb151d61fe6bb9c47f | |
parent | 6f95c49a15e85c007e9c94c107232f9fee600aa8 (diff) | |
download | rails-5da4c397826b26368efdd0eefc433f990bc90345.tar.gz rails-5da4c397826b26368efdd0eefc433f990bc90345.tar.bz2 rails-5da4c397826b26368efdd0eefc433f990bc90345.zip |
Make the reaper slightly more robust in the nudging department
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-x | railties/bin/process/reaper | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/bin/process/reaper b/railties/bin/process/reaper index 819cd0d4d9..0ab5bbbb8a 100755 --- a/railties/bin/process/reaper +++ b/railties/bin/process/reaper @@ -6,7 +6,13 @@ require 'uri' def nudge(url, iterations) print "Nudging #{url}: " - iterations.times { Net::HTTP.get_response(URI.parse(url)); print "."; STDOUT.flush } + + iterations.times do + Net::HTTP.get_response(URI.parse(url)) rescue nil + print "." + STDOUT.flush + end + puts end |