# File lib/celluloid/io/unix_server.rb, line 19
      def initialize(socket)
        if socket.kind_of? ::BasicSocket
          # socket
          fail ArgumentError, "wrong kind of socket (#{socket.class} for UNIXServer)" unless socket.kind_of? ::UNIXServer
          super(socket)
        else
          begin
            super(::UNIXServer.new(socket))
          rescue => ex
            # Translate the EADDRINUSE jRuby exception.
            raise unless RUBY_PLATFORM == 'java'
            if ex.class.name == "IOError" && # Won't agree to .is_a?(IOError)
               ex.message.include?("in use")
              raise Errno::EADDRINUSE.new(ex.message)
            end
            raise
          end
        end
      end