GNU bug report logs -
#24714
delete-directory race condition
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Mon, 17 Oct 2016 02:21:01 UTC
Severity: normal
Found in version 25.1
Fixed in version 26.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Package: emacs
Version: 25.1
On current Debian testing, many tests in package-test.el fail for me with:
Test package-test-update-listing condition:
(file-error "Removing old name" "No such file or directory"
"/tmp/pkg-test-user-dir-27293kBj/gnupg/S.gpg-agent.rstrd")
I believe this is due to a race condition in delete-directory.
Emacs seems to be lacking an equivalent of "rm -rf".
(delete-directory "/tmp/foo")
will fail with "No such file or directory" if a file in /tmp/foo
happen to be deleted by some other process in between the time that
delete-directory calls directory-files and the time it calls delete-file.
This bug report was last modified 8 years and 264 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.