From: Jan Provaznik <jprovazn(a)redhat.com>
While-true loop w/o any sleep eats all system resources.
---
src/condor_refreshd/condor_refreshd | 1 +
src/dbomatic/dbomatic | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/condor_refreshd/condor_refreshd b/src/condor_refreshd/condor_refreshd
index 4f1b93c..a12e3ae 100755
--- a/src/condor_refreshd/condor_refreshd
+++ b/src/condor_refreshd/condor_refreshd
@@ -114,6 +114,7 @@ begin
e.backtrace.each do |step|
logger.error "\tfrom #{step}"
end
+ sleep 5
end
end
rescue => e
diff --git a/src/dbomatic/dbomatic b/src/dbomatic/dbomatic
index 8a3e968..de9ce1b 100755
--- a/src/dbomatic/dbomatic
+++ b/src/dbomatic/dbomatic
@@ -312,6 +312,7 @@ begin
e.backtrace.each do |step|
logger.error "\tfrom #{step}"
end
+ sleep 5
end
end
--
1.7.3.5