Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openrc-init refactoring #710

Closed
wants to merge 2 commits into from
Closed

openrc-init refactoring #710

wants to merge 2 commits into from

Conversation

floppym
Copy link
Contributor

@floppym floppym commented May 27, 2024

See the commit messages for details.

Minimize the amount of work done in the signal handler by maintaining a
set of received signals and deferring the actual work to the main loop.

Treat SIGRTMIN+4 as a power-off signal for compatibility with
systemd-machined.

Adjust handle_shutdown to skip sending SIGTERM / SIGKILL if there are no
processes remaining.

Signed-off-by: Mike Gilbert <[email protected]>
Move fifo-related code out of main into a separate function.
Use raw open/read calls instead of stdio to read from fifo.
Make default_runlevel a global variable to simplify init() calls.

Signed-off-by: Mike Gilbert <[email protected]>
@navi-desu navi-desu self-assigned this Sep 23, 2024
@floppym floppym closed this Oct 14, 2024
@floppym floppym deleted the signals branch October 14, 2024 15:59
@floppym floppym restored the signals branch October 15, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants