Updated breakdown_signal_handler in src/platform/mod.rs to obtain a raw pointer to GLOBAL_CALLBACK instead of a shared reference.

This commit is contained in:
Jonathan Gilbert
2025-11-01 16:25:25 -05:00
parent 8e88482451
commit 95dd7e5c21

View File

@@ -62,7 +62,7 @@ extern "C" fn breakdown_signal_handler(sig: i32) {
.ok();
}
unsafe {
if let Some(callback) = &GLOBAL_CALLBACK {
if let Some(callback) = &raw const GLOBAL_CALLBACK {
callback()
}
}