Thermal behavior for a confined reactive gas