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-shutdown: simplify broadcast function #709

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

floppym
Copy link
Contributor

@floppym floppym commented May 23, 2024

Get rid of the alarm/setjmp/longjmp.
Trust that the kernel will not block with O_NDELAY.
Use write() instead of stdio.

Bug: https://bugs.gentoo.org/923326

src/openrc-shutdown/broadcast.c Outdated Show resolved Hide resolved
Get rid of the alarm/setjmp/longjmp.
Trust that the kernel will not block with O_NDELAY.
Use write() instead of stdio.

Bug: https://bugs.gentoo.org/923326
Signed-off-by: Mike Gilbert <[email protected]>
@floppym floppym changed the title openrc-shutdown: broadcast: simplify non-blocking logic openrc-shutdown: simplify broadcast function May 24, 2024
@williamh williamh merged commit 53071ce into OpenRC:master Jul 22, 2024
5 checks passed
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.

4 participants