about summary refs log tree commit homepage
path: root/lib/unicorn/socket_helper.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-30 00:47:28 +0000
committerEric Wong <normalperson@yhbt.net>2010-04-30 00:47:28 +0000
commit87b792445e5e38291fc50b6c3b825a63e9adf130 (patch)
treebf2ffe16b1818ee94a62834f28a2acca71ae8d70 /lib/unicorn/socket_helper.rb
parent83d2170442144a1b2f623b32a1291befaf59c968 (diff)
downloadunicorn-87b792445e5e38291fc50b6c3b825a63e9adf130.tar.gz
This is useful as a :listeners argument when setting up
Raindrops::Middleware (http://raindrops.bogomips.org/),
as it can be done automatically.
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r--lib/unicorn/socket_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb
index 09085e5..9a4266d 100644
--- a/lib/unicorn/socket_helper.rb
+++ b/lib/unicorn/socket_helper.rb
@@ -136,6 +136,8 @@ module Unicorn
       end
     end
 
+    module_function :sock_name
+
     # casts a given Socket to be a TCPServer or UNIXServer
     def server_cast(sock)
       begin