Use while loop instead of break so main loop can be exited and cleaned up from anywhere

This commit is contained in:
2025-05-13 20:40:12 -07:00
parent a1aa3bc2eb
commit 7dcf3d80bb
2 changed files with 35 additions and 32 deletions

View File

@@ -103,6 +103,7 @@ impl ShmPool {
impl Drop for ShmPool {
fn drop(&mut self) {
println!("Dropping ShmPool!");
unsafe { munmap(self.addr, self.size); }
}
}