No pilot light, no gas getting to outlet, main gas valve and unit valve only things gas goes through. Once lit, a thermal link in the pilot flame will keep the gas going through the units valve. So that if light goes out, valve will close gas off.
SD, December 2011