class Pdns::Remotebackend::Unix
Public Instance Methods
run()
click to toggle source
# File lib/pdns/remotebackend.rb, line 304 def run @path = @options[:path] || "/tmp/remotebackend.sock" begin Socket.unix_server_loop(@path) do |sock, client_addrinfo| begin if (@options.has_key? :abi and @options[:abi].to_sym == :pipe) mainloop3 sock,sock else mainloop4 sock,sock end ensure sock.close end end rescue SystemExit, Interrupt end end