Adding from RELENG_1_2: safe_write_file() Writes a file out atomically by first writing to a temporary file of the same name but ending with the pid of the current process, them renaming the temporary file over the original.
Adding from RELENG_1_2: safe_write_file() Writes a file out atomically by first writing to a temporary file of the same name but ending with the pid of the current process, them renaming the temporary file over the original.

dennypage/pfsense,ch1c4um/pfsense,NOYB/pfsense,dennypage/pfsense,dennypage/pfsense,brunostein/pfsense,NewEraCracker/pfsense,jxmx/pfsense,phil-davis/pfsense,brunostein/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,ptorsten/pfsense,brunostein/pfsense,NewEraCracker/pfsense,jxmx/pfsense,NOYB/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,ch1c4um/pfsense,ptorsten/pfsense,pfsense/pfsense,ch1c4um/pfsense,pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,pfsense/pfsense,NOYB/pfsense,NewEraCracker/pfsense,jxmx/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense