Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Avoid kernel panic in case auraed stops #22

Open
Vincinator opened this issue Sep 28, 2022 · 0 comments
Open

Avoid kernel panic in case auraed stops #22

Vincinator opened this issue Sep 28, 2022 · 0 comments
Labels

Comments

@Vincinator
Copy link
Collaborator

When auraed is started as pid1, it has no parent process in user space. It is then also called init process.
In case the init process stops, the kernel does not know what to do - so it panics.

I think we shouldn't let the kernel panic, and handle the two cases:

  1. regular stop of auraed
  2. unhandled rust panic / aka auraed crashes

A simple solution is to just shutdown the system via e.g.

 syscall_reboot(libc::LINUX_REBOOT_CMD_POWER_OFF);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants