feat(shell/lean): use locking also for the index file

This commit is contained in:
Leonardo de Moura 2015-12-12 21:50:08 -08:00
parent 4dc3764a02
commit edad31a9b1

View file

@ -544,6 +544,7 @@ int main(int argc, char ** argv) {
cache.save(out);
}
if (gen_index) {
exclusive_file_lock index_lock(index_name);
std::shared_ptr<lean::file_output_channel> out(new lean::file_output_channel(index_name.c_str()));
ios.set_regular_channel(out);
index.save(regular(env, ios));