summaryrefslogtreecommitdiff
path: root/lib/chef/application
diff options
context:
space:
mode:
authorGiedrius Rekasius <giedrius.rekasius@mongodb.com>2017-10-09 17:19:58 +0100
committerGiedrius Rekasius <giedrius.rekasius@mongodb.com>2017-10-09 17:19:58 +0100
commit7a397fad0a72ceaa5374db860f0a051e3f49f5d1 (patch)
tree9c56357cb1a323803a9fcd21681c2c7bc9d5283b /lib/chef/application
parent2894585a40fbec06a5ff224ad579ff7194833aa2 (diff)
downloadchef-7a397fad0a72ceaa5374db860f0a051e3f49f5d1.tar.gz
Sleep for another interval after handling SIGHUP
Signed-off-by: Giedrius Rekasius <giedrius.rekasius@gmail.com> This resolves a bug that caused chef-client service to go into infinite sleep after handling SIGHUP.
Diffstat (limited to 'lib/chef/application')
-rw-r--r--lib/chef/application/client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb
index ae16777cb6..32530925d5 100644
--- a/lib/chef/application/client.rb
+++ b/lib/chef/application/client.rb
@@ -501,7 +501,7 @@ class Chef::Application::Client < Chef::Application
# we need to sleep again after reconfigure to avoid stampeding when logrotate runs out of cron
if signal == RECONFIGURE_SIGNAL
reconfigure
- interval_sleep(sleep)
+ interval_sleep(sec)
end
else
sleep(sec)