Skip to content

Commit c843c4a

Browse files
authored
Update main.rs
fix std and advisory_lock collision in try_lock method in core-dump-agent
1 parent c315d2d commit c843c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-dump-agent/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async fn process_file(zip_path: &Path, bucket: &Bucket) {
292292

293293
let f = File::open(zip_path).expect("no file found");
294294

295-
match f.try_lock(FileLockMode::Shared) {
295+
match AdvisoryFileLock.try_lock(&f, FileLockMode::Shared) {
296296
Ok(_) => { /* If we can lock then we are ok */ }
297297
Err(e) => {
298298
let l_inotify = env::var("USE_INOTIFY")

0 commit comments

Comments
 (0)