Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Built-in rm2fb client corrupts the server state #89

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/framebuffer/swtfb_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use super::mxcfb::mxcfb_update_data;
use crate::device;
use crate::framebuffer::screeninfo::{FixScreeninfo, VarScreeninfo};
use log::warn;
use memmap2::{MmapOptions, MmapRaw};
use std::ffi::{c_void, CStr, CString};
use std::fs::{File, OpenOptions};
Expand Down Expand Up @@ -220,11 +219,3 @@ impl SwtfbClient {
screeninfo
}
}

impl Drop for SwtfbClient {
fn drop(&mut self) {
if unsafe { libc::msgctl(self.msqid, libc::IPC_RMID, ptr::null_mut()) } != 0 {
warn!("Got an error when attempting to close an ipc queue!")
}
}
}