[llvm-dev] Races in llvm-objcopy

David Zarzycki via llvm-dev llvm-dev at lists.llvm.org
Tue Jun 23 04:34:33 PDT 2020


Hi Jake,

About a year ago in commit 5049c3422d26b2b68877307c41b35d7e6aae3235, you attempted to solve a race in llvm-objcopy. What was the race? I ask because unless "last change wins" is the result you want, then the race isn't solved. The problem is that `sys::fs::rename` is just a thin wrapper around POSIX semantics, and replacing an existing file is not an error.

Dave


More information about the llvm-dev mailing list