Use while loop instead of break so main loop can be exited and cleaned up from anywhere
This commit is contained in:
@@ -103,6 +103,7 @@ impl ShmPool {
|
||||
|
||||
impl Drop for ShmPool {
|
||||
fn drop(&mut self) {
|
||||
println!("Dropping ShmPool!");
|
||||
unsafe { munmap(self.addr, self.size); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user