We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c315d2d commit c843c4aCopy full SHA for c843c4a
core-dump-agent/src/main.rs
@@ -292,7 +292,7 @@ async fn process_file(zip_path: &Path, bucket: &Bucket) {
292
293
let f = File::open(zip_path).expect("no file found");
294
295
- match f.try_lock(FileLockMode::Shared) {
+ match AdvisoryFileLock.try_lock(&f, FileLockMode::Shared) {
296
Ok(_) => { /* If we can lock then we are ok */ }
297
Err(e) => {
298
let l_inotify = env::var("USE_INOTIFY")
0 commit comments