Method: Thin::Backends::UnixServer#connect
- Defined in:
- lib/thin/backends/unix_server.rb
#connect ⇒ Object
Connect the server
15 16 17 18 19 20 21 22 23 24 25 26 |
# 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 |