Add some features to flock.
This commit is contained in:
parent
6ef8198406
commit
206e7b6fc7
2 changed files with 106 additions and 22 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue