865f5f469c
The flag works (= kernel accepts it) for all scheduling policies and sched_getattr() returns the flag for all policies. There is no reason for userspace to be more smart than kernel or hide the flag when it prints sched_getattr()/sched_getscheduler() results. # chrt -v --reset-on-fork --batch 0 /bin/true pid 1315019's new scheduling policy: SCHED_BATCH|SCHED_RESET_ON_FORK # chrt -v --reset-on-fork --fifo 1 /bin/true pid 1315055's new scheduling policy: SCHED_FIFO|SCHED_RESET_ON_FORK # chrt -v --reset-on-fork --deadline --sched-period 10000 0 /bin/true pid 1315182's new scheduling policy: SCHED_DEADLINE|SCHED_RESET_ON_FORK # chrt -v --reset-on-fork --idle 0 /bin/true pid 1315247's new scheduling policy: SCHED_IDLE|SCHED_RESET_ON_FORK # chrt -v --reset-on-fork --rr 1 /bin/true pid 1315275's new scheduling policy: SCHED_RR|SCHED_RESET_ON_FORK # chrt -v --reset-on-fork --other 0 /bin/true pid 1315311's new scheduling policy: SCHED_OTHER|SCHED_RESET_ON_FORK Signed-off-by: Karel Zak <kzak@redhat.com> |
||
---|---|---|
.. | ||
Makemodule.am | ||
chrt.1 | ||
chrt.c | ||
ionice.1 | ||
ionice.c | ||
taskset.1 | ||
taskset.c |