rstudio/rstudio — comment on commit 65b6b99362a538bd5aa691423b7d7bf3fe67e274
File: src/cpp/session/SessionSourceDatabaseSupervisor.cpp line 371
By jjallaire:

I added a function noLockedSession exists and re-ordered the checks as you specified. However, I don't think I understand the exact nature of the race well enough to say whether this takes care of it. In addition to this do I need to re-order the implementation of detachFromSourceDatabase? (currently does file copying, then releases the lock, then removes the lock file, then removes the directory). Definitely want to understand the scenario clearly before I move on.