Call fsync() after modifying /etc/hosts.
This is a critical file. Breaking it would be very bad. Thus, if the system crashes before the data is synched to the disk, it should have the complete file afterwards. Reviewed-by: iustinp
Loading
Please register or sign in to comment