Files
RedBear-OS/local/recipes/system
vasilito 1021219d4a redbear-upower: remove tokio signal feature causing protection fault
The previous tokio = { features = ["full"] } pulled in tokio::signal
(including tokio::signal::unix::SignalKind::terminate). On Redox the
libc signal-handler registration path is incomplete; calling
enable_all() in main triggered a protection fault inside relibc, and
the kernel then panicked on unreachable code in
process::exit_this_context (see kernel/src/syscall/process.rs:79).

Two-part fix:
- Cargo.toml: scope tokio features to rt, rt-multi-thread, macros,
  net, time, sync. This drops  and , which are
  unavailable on Redox anyway. The init system manages the daemon
  lifecycle, so a signal handler is not needed in this daemon.
- src/main.rs: spawn_signal_handler becomes a no-op. The shutdown_tx
  channel is preserved for any future internal shutdown signaling.
  The SIGTERM path is removed entirely.

This unblocks Phase 2.1 by removing the kernel panic cascade: the
protection fault no longer fires, the kernel's exit_this_context
reaches the context switch cleanly, and the previous
unreachable!() panic no longer triggers.
2026-07-08 22:08:21 +03:00
..