test: shutdown demo
This commit is contained in:
1 parent
140bbe0e84
commit
b0521193a4
14 files changed
+870
-779
No files matched your search
+1
-2
@@ -159,8 +159,7 @@ struct ForegroundVt {
|
||||
}
|
||||
|
||||
fn active_vt() -> Option<u16> {
|
||||
let state: VtState =
|
||||
unsafe { ioctl(stdin(), Getter::<VT_GETSTATE, VtState>::new()) }.ok()?;
|
||||
let state: VtState = unsafe { ioctl(stdin(), Getter::<VT_GETSTATE, VtState>::new()) }.ok()?;
|
||||
Some(state.active)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user