diff options
author | Saku Ytti <saku@ytti.fi> | 2014-04-22 12:20:05 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-04-22 12:20:05 +0300 |
commit | 09dfc11b5dfdfe926b217c17549e417b79009d7d (patch) | |
tree | 725a12bd05b8a26bf8cc6c49d8b1aa652cc84ddb /Rakefile | |
parent | da959461a6f90856d5d3d02e26d32d7d4c0a4c2c (diff) |
potential fix to race condition
1) ssh fails
2) user clicks 'update'
3) node is reset and moved head of queue
4) telnet fails
5) node last time is set to current
net result, head of queue will block until interval has passed, even
though below head there are nodes which need to be processed.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,10 +1,9 @@ begin require 'rake/testtask' require 'bundler' - Bundler.setup + # Bundler.setup rescue LoadError warn 'bunler missing' - exit 42 end gemspec = eval(File.read(Dir['*.gemspec'].first)) @@ -33,7 +32,7 @@ end desc 'Install gem' task :install => :build do - system "sudo -E sh -c \'umask 022; gem install gems/#{file}\'" + system "sudo -Es sh -c \'umask 022; gem install gems/#{file}\'" end desc 'Remove gems' |