labath wrote:

At least back when I was looking at this problem (5+ years ago), memory mapping 
was the key -- I was not able to delete the process if the file was mapped -- 
regardless of the open flags. That said, [this 
comment](https://github.com/llvm/llvm-project/blob/4d218caa7716743061e8d34d61b2181c94b16440/llvm/lib/Support/Windows/Path.inc#L921C1-L925C20)
 seems to indicate this might be possible (though it may refer to 
FILE_FLAG_DELETE_ON_CLOSE rather then an separate delete operation), so :shrug:

Either way, I think this change is fine, as we don't really want to enforce 
that the file *can't* be deleted if the source cache setting is "true".

https://github.com/llvm/llvm-project/pull/111237
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to