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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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 <floppym@gentoo.org>
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 <floppym@gentoo.org>
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