On 13/08/2015 12:36, Bastian Bittorf wrote:
maybe this is a race?

root@box:~ rm -fR /tmp/dbcache
rm: can't remove '/tmp/dbcache': Directory not empty
root@box:~ echo $?
1

 Most likely a race. It's impossible to atomically remove
a directory with Unix.

 (There's a way to emulate that: first rename() the directory
to something unique and unpredictable, then rm -rf that
directory. But AFAIK, no rm implementation proceeds like this,
and there's still a small risk that it won't work.)

--
 Laurent

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to