Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sysrq-k on getty-tty1 kills the entire supervision tree #13

@plorenzo19

Description

@plorenzo19

Hello,
I had this reported downstream (Devuan) and it was also on supervision list:
https://dev1galaxy.org/viewtopic.php?id=6874
https://skarnet.org/lists/supervision/0677.html

The report on supervision says it kills PID 1 and panic, according to my testing on Debian if I press sysrq-k on getty-tty1 it kills runsvdir and all runsv childs; runit enters stage 3 (I see messages fail:runsv not running and then shutdown tasks are run) and shutdown the system.

Laurent suggests to discard stdin, tried this in stage 2 before runsvdir exec, but it doesn't work; If both stdin and stdout are discarded,
sysrq-k only kills the getty which is then restarted, so it behaves as expected, but all runsvdir output is lost.

Is there a way to address this in runsvdir.c?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions