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

Avoid kernel panic in case auraed stops #22

Description

@Vincinator

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions