Browse files

Fix #setrlimit for soft > hard by ignoring hard

Change-Id: Ibaca79cf1c43d315c821f340cbcc67cfd5875851
  • Loading branch information...
1 parent 72fa69e commit 33dfb14cb0308fb40d428f64e65ea5342dee4e7c @pietern pietern committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 warden/lib/warden/server.rb
View
2 warden/lib/warden/server.rb
@@ -250,7 +250,7 @@ def self.run!
::EM.epoll
old_soft, old_hard = Process.getrlimit(:NOFILE)
- Process.setrlimit(Process::RLIMIT_NOFILE, 32768, old_hard)
+ Process.setrlimit(Process::RLIMIT_NOFILE, 32768)
new_soft, new_hard = Process.getrlimit(:NOFILE)
logger.debug("rlimit_nofile: %d => %d" % [old_soft, new_soft])

0 comments on commit 33dfb14

Please sign in to comment.