The evolution of an impact-generated atmosphere