21 lines
664 B
Diff
21 lines
664 B
Diff
# P2-daemon-ready-graceful.patch
|
|
#
|
|
# Replace unwrap() in Daemon::ready() with graceful error handling.
|
|
# When hwd spawns pcid fire-and-forget (dropping the pipe's read end
|
|
# before pcid signals readiness), the unwrap() causes a BrokenPipe panic
|
|
# that kills pcid and cascades into total boot failure.
|
|
#
|
|
# Also adds the log crate to daemon's dependencies for the debug message.
|
|
#
|
|
diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml
|
|
--- a/daemon/Cargo.toml
|
|
+++ b/daemon/Cargo.toml
|
|
@@ -7,6 +7,7 @@ edition = "2024"
|
|
[dependencies]
|
|
libc.workspace = true
|
|
libredox.workspace = true
|
|
+log.workspace = true
|
|
redox-scheme.workspace = true
|
|
redox_syscall.workspace = true
|
|
|