]> git.eshelyaron.com Git - emacs.git/commit
Port better to NFS unlink
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Aug 2024 03:10:53 +0000 (20:10 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 16 Aug 2024 14:04:53 +0000 (16:04 +0200)
commitbee6f71ac3e6812693248dc4c3698b7a67c3c4b3
tree0c69ad32a4e28b84644e0f8df9421cd38127fdf9
parentf8ede8b27cc988eec1a4911740bdf7f7de6d98a6
Port better to NFS unlink

I found this problem while looking into Bug#72641.
* lib-src/etags.c (do_move_file):
* lib-src/update-game-score.c (unlock_file):
* src/androidvfs.c (android_hack_asset_fd_fallback):
* src/filelock.c (current_lock_owner):
Treat unlink as successful if it fails because the file wasn’t there.
This can happen with some NFS implementations, due to its
retrying over the network to get at-least-once semantics.
Although most of Emacs’s calls to unlink were already doing this,
a few instances were not.

(cherry picked from commit 40eecd594ac60f38b6729fd9cf3474a8b9d133b9)
lib-src/etags.c
lib-src/update-game-score.c
src/androidvfs.c
src/filelock.c