Skip to content

Commit 0f28f00

Browse files
aquaratixcou.baharev
authored andcommitted
Update main.rs
fix std and advisory_lock collision in lock method in core-dump-composer Signed-off-by: aquaratixc <[email protected]>
1 parent a40ca1f commit 0f28f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-dump-composer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn handle(mut cc: config::CoreConfig) -> Result<(), anyhow::Error> {
131131
process::exit(1);
132132
}
133133
};
134-
file.lock(FileLockMode::Exclusive)?;
134+
AdvisoryFileLock.lock(FileLockMode::Exclusive)?;
135135
let mut zip = ZipWriter::new(&file);
136136

137137
debug!(

0 commit comments

Comments
 (0)