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
34: def close
35: remove_socket_file
36: end
Connect the server
# File lib/thin/backends/unix_server.rb, line 15
15: def connect
16: at_exit { remove_socket_file } # In case it crashes
17: old_umask = File.umask(0)
18: begin
19: EventMachine.start_unix_domain_server(@socket, UnixConnection, &method(:initialize_connection))
20: # HACK EventMachine.start_unix_domain_server doesn't return the connection signature
21: # so we have to go in the internal stuff to find it.
22: @signature = EventMachine.instance_eval{@acceptors.keys.first}
23: ensure
24: File.umask(old_umask)
25: end
26: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.