module DEBUGGER__

def self.unix_domain_socket_tmpdir

def self.unix_domain_socket_tmpdir
  require 'tmpdir'
  if tmpdir = Dir.tmpdir
    path = File.join(tmpdir, "rdbg-#{Process.uid}")
    unless File.exist?(path)
      d = Dir.mktmpdir
      File.rename(d, path)
    end
    check_dir_authority(path)
  end
end