diff --git a/drivers/acpid/src/main.rs b/drivers/acpid/src/main.rs index e9c871683f..b145135919 100644 --- a/drivers/acpid/src/main.rs +++ b/drivers/acpid/src/main.rs @@ -110,11 +110,11 @@ fn daemon(daemon: daemon::Daemon) -> ! { register_sync_scheme(&socket, "acpi", &mut scheme) .expect("acpid: failed to register acpi scheme to namespace"); + libredox::call::setrens(0, 0).expect("acpid: failed to enter null namespace"); + daemon.ready(); log::info!("acpid ready"); - libredox::call::setrens(0, 0).expect("acpid: failed to enter null namespace"); - let mut mounted = true; while mounted { let Some(event) = event_queue