# File lib/mongrel/configurator.rb, line 83
    def write_pid_file
      if RUBY_PLATFORM !~ /mingw|mswin/
        log "Writing PID file to #{@pid_file}"
        open(@pid_file,"w") {|f| f.write(Process.pid) }
        open(@pid_file,"w") do |f|
          f.write(Process.pid)
          File.chmod(0644, @pid_file)
        end
      end
    end