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

start-stop-daemon: fix setting scheduler with musl #690

Merged
merged 1 commit into from
Jul 24, 2024

Commits on Jul 24, 2024

  1. start-stop-daemon: fix setting scheduler with musl

    Linux does not provide a way to set scheduling parameters for a process,
    only for threads, so musl sched_setscheduler() is only a stub and the
    glibc implementation does "the wrong thing".
    
    Use pthread_setschedparam everywhere so we don't depend on any
    implementation specific behavior.
    
    ref: https://www.openwall.com/lists/musl/2016/03/01/5
    fixes: OpenRC#689
    ncopa authored and navi-desu committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    425ebfa View commit details
    Browse the repository at this point in the history