The sync utility can be called to ensure that all disk writes have been completed before the processor is halted in a way not suitably done by reboot or halt.