From 2ad84308bf54fdd9bf23e33770927699c74c96bf Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 27 Apr 2022 20:38:41 -0600 Subject: [PATCH] Daemonize ps2d before doing ps2 init --- ps2d/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ps2d/src/main.rs b/ps2d/src/main.rs index 880a531f09..947bce2cd1 100644 --- a/ps2d/src/main.rs +++ b/ps2d/src/main.rs @@ -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