Daemonize ps2d before doing ps2 init

This commit is contained in:
Jeremy Soller
2022-04-27 20:38:41 -06:00
parent 64f40c584b
commit 2ad84308bf
+2 -2
View File
@@ -82,10 +82,10 @@ fn daemon(daemon: syscall::Daemon) -> core::convert::Infallible {
syscall::setrens(0, 0).expect("ps2d: failed to enter null namespace");
let mut ps2d = Ps2d::new(input, keymap);
daemon.ready().expect("ps2d: failed to mark daemon as ready");
let mut ps2d = Ps2d::new(input, keymap);
let mut data = [0; 256];
loop {
// There are some gotchas with ps/2 controllers that require this weird