Bug 193558

Summary: rm -rf should not fail if multiple processes deleting same directory
Product: Base System Reporter: Radim Kolar <hsn>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: jilles, ngie
Priority: ---    
Version: 10.0-PRERELEASE   
Hardware: i386   
OS: Any   

Description Radim Kolar 2014-09-11 12:19:54 UTC
if you delete work directory used for building port with multiple rm with -rf flags, all instances of rm after some time fails with:

(hsn@sanatana:pts/0):~/myports/spark% rm -rf work
rm: fts_read: No such file or directory

as i see it, rm -f should never hard fail during delete process, just ignore error (directory deleted by other process) and move on.
Comment 1 Jilles Tjoelker freebsd_committer freebsd_triage 2014-09-12 14:44:13 UTC
I think SVN r268376 (in head only) should fix this.
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2014-10-02 06:20:52 UTC

*** This bug has been marked as a duplicate of bug 192490 ***