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 a958f6e commit f92dcc3Copy full SHA for f92dcc3
core-dump-composer/src/events.rs
@@ -87,7 +87,7 @@ impl CoreEvent {
87
pub fn write_event(&self, eventlocation: &str) -> Result<(), anyhow::Error> {
88
let full_path = format!("{}/{}-event.json", eventlocation, self.uuid);
89
let file = File::create(full_path)?;
90
- file.lock(FileLockMode::Exclusive)?;
+ AdvisoryFileLock.lock(&file, FileLockMode::Exclusive)?;
91
serde_json::to_writer(&file, &self)?;
92
file.unlock()?;
93
Ok(())
0 commit comments