From e01d0c54872ffbc6b07ef790666a74494585de7c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Apr 2009 22:05:22 -0700 Subject: fix 100% CPU usage when idle Oops, that was not just speculative accept(), but spammy accept()... --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 2093bb3..208e6da 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -495,7 +495,7 @@ module Unicorn # client closed the socket even before accept client.close rescue nil ensure - tempfile.chmod(nr += 1) + tempfile.chmod(nr += 1) if client break if nr < 0 end end -- cgit v1.2.3-24-ge0c7