diff options
author | Giedrius Rekasius <giedrius.rekasius@mongodb.com> | 2017-10-09 17:19:58 +0100 |
---|---|---|
committer | Giedrius Rekasius <giedrius.rekasius@mongodb.com> | 2017-10-09 17:19:58 +0100 |
commit | 7a397fad0a72ceaa5374db860f0a051e3f49f5d1 (patch) | |
tree | 9c56357cb1a323803a9fcd21681c2c7bc9d5283b /lib/chef/application | |
parent | 2894585a40fbec06a5ff224ad579ff7194833aa2 (diff) | |
download | chef-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.rb | 2 |
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) |