Displaying 1 result from an estimated 1 matches for "7d2c623".
Did you mean:
7321623
2012 Feb 29
2
[PATCH] Start the server if another user has a PID matching our stale pidfile.
...le gets used by
another process, the current unicorn code will exit and not start a
server. This tiny patch fixes that behaviour.
---
lib/unicorn/http_server.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb
index 7d2c623..0c2af5d 100644
--- a/lib/unicorn/http_server.rb
+++ b/lib/unicorn/http_server.rb
@@ -656,7 +656,7 @@ class Unicorn::HttpServer
wpid <= 0 and return
Process.kill(0, wpid)
wpid
- rescue Errno::ESRCH, Errno::ENOENT
+ rescue Errno::ESRCH, Errno::ENOENT, Errno::EPERM
# do...