Base
Backend to act as a UNIX domain socket server.
Free up resources used by the backend.
# File lib/thin/backends/unix_server.rb, line 34 def close remove_socket_file end
Connect the server
# File lib/thin/backends/unix_server.rb, line 15 def connect at_exit { remove_socket_file } # In case it crashes old_umask = File.umask(0) begin EventMachine.start_unix_domain_server(@socket, UnixConnection, &method(:initialize_connection)) # HACK EventMachine.start_unix_domain_server doesn't return the connection signature # so we have to go in the internal stuff to find it. @signature = EventMachine.instance_eval{@acceptors.keys.first} ensure File.umask(old_umask) end end
Generated with the Darkfish Rdoc Generator 2.