* lisp/files-x.el (modify-dir-local-variable): Change the header comment
[bpt/emacs.git] / src / filelock.c
index 3299289..de6aba8 100644 (file)
@@ -437,6 +437,8 @@ create_lock_file (char *lfname, char *lock_info_str, bool force)
          if (emacs_write (fd, lock_info_str, lock_info_len) != lock_info_len
              || (need_fchmod && fchmod (fd, world_readable) != 0))
            err = errno;
+         /* There is no need to call fsync here, as the contents of
+            the lock file need not survive system crashes.  */
          if (emacs_close (fd) != 0)
            err = errno;
          if (!err && rename_lock_file (nonce, lfname, force) != 0)