fix(windows): retain runtime authority after cleanup failure

This commit is contained in:
morluto
2026-10-09 21:01:53 +08:00
parent 81b70bc358
commit af7a439633
5 changed files with 77 additions and 13 deletions
+1
View File
@@ -86,6 +86,7 @@ struct Runtime : Resource {
std::vector<Handle> parents;
Handle directory;
std::vector<Handle> immutableFiles;
bool closing = false;
// Main-thread admission is single-flight; only the accepted copy owns the
// atomic cancellation flag consumed by its async worker. ERROR_BUSY rejects
// another copy before it can reset that flag or replace pending ownership.