in reply to Re^2: Temporary usage of RAM memory
in thread Temporary usage of RAM memory

Only one of the racing processes can win the rename, so you have to check it for failure and re-try the readdir/rename loop. So you don't need locking, but you do need checking and retrying.

Replies are listed 'Best First'.
Re^4: Temporary usage of RAM memory
by davido (Cardinal) on Apr 11, 2014 at 06:18 UTC

    Thanks, that makes sense. :)


    Dave