# File lib/thin/daemonizing.rb, line 161
      def write_pid_file
        log_info "Writing PID to #{@pid_file}"
        open(@pid_file,"w") { |f| f.write(Process.pid) }
        File.chmod(0644, @pid_file)
      end