Nguyễn Hồ Ngọc Anh
Member
Is Linux rename Atomic?
Answer
yes rename() is atomic but not in the sense of your question. Under Linux, rename(2) says: However, when overwriting there will probably be a window in which both oldpath and newpath refer to the file being renamed.
Answer
yes rename() is atomic but not in the sense of your question. Under Linux, rename(2) says: However, when overwriting there will probably be a window in which both oldpath and newpath refer to the file being renamed.