Comment 6 for bug 406702

Revision history for this message
Tony Espy (awe) wrote :

The commit in question appears to have landed in 2.6.32:

commit ca94c442535a44d508c99a77e54f21a59f4fc462
Author: Lennart Poettering <email address hidden>
Date: Mon Jun 15 17:17:47 2009 +0200

    sched: Introduce SCHED_RESET_ON_FORK scheduling policy flag

    This patch introduces a new flag SCHED_RESET_ON_FORK which can be passed
    to the kernel via sched_setscheduler(), ORed in the policy parameter. If
    set this will make sure that when the process forks a) the scheduling
    priority is reset to DEFAULT_PRIO if it was higher and b) the scheduling
    policy is reset to SCHED_NORMAL if it was either SCHED_FIFO or SCHED_RR.