You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
Via MalteJ, "auraed must not exit if something bad happens. When running as pid 1, we get a kernel panic, when pid 1 exits. We could trigger a reboot instead."
A panic in the daemon will only crash the thread, not the program, as everything is in a thread handled by tokio. As long as tokio's crash/exit is handled, then auraed can be prevented from exiting, hopefully.
A simple loop to restart the daemon may be an appropriate solution:
#[tokio::main]
async fn main() {
loop {
let exit_code = daemon().await;
println!("daemon stopped with exit code: {}", exit_code);
println!("restarting daemon...");
}
panic!("auraed should never exit!");
}
Via MalteJ, "auraed must not exit if something bad happens. When running as pid 1, we get a kernel panic, when pid 1 exits. We could trigger a reboot instead."
A panic in the daemon will only crash the thread, not the program, as everything is in a thread handled by tokio. As long as tokio's crash/exit is handled, then auraed can be prevented from exiting, hopefully.
A simple loop to restart the daemon may be an appropriate solution:
replacing
auraed/src/bin/main.rs
Line 114 in 2b27480
The text was updated successfully, but these errors were encountered: