1
Fork 0

Add some features to flock.

This commit is contained in:
Michael Woerister 2016-08-15 13:52:38 -04:00
parent 6ef8198406
commit 206e7b6fc7
2 changed files with 106 additions and 22 deletions

View file

@ -652,7 +652,7 @@ fn write_shared(cx: &Context,
// docs placed in the output directory, so this needs to be a synchronized
// operation with respect to all other rustdocs running around.
try_err!(mkdir(&cx.dst), &cx.dst);
let _lock = flock::Lock::new(&cx.dst.join(".lock"));
let _lock = flock::Lock::panicking_new(&cx.dst.join(".lock"), true, true, true);
// Add all the static files. These may already exist, but we just
// overwrite them anyway to make sure that they're fresh and up-to-date.