util-linux/schedutils
Karel Zak 865f5f469c chrt: don't restrict --reset-on-fork, add more info to man page
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>
2020-10-01 11:51:12 +02:00
..
Makemodule.am build-sys: add BUILD_CHRT 2014-05-21 13:35:01 +02:00
chrt.1 chrt: don't restrict --reset-on-fork, add more info to man page 2020-10-01 11:51:12 +02:00
chrt.c chrt: don't restrict --reset-on-fork, add more info to man page 2020-10-01 11:51:12 +02:00
ionice.1 doc: schedutils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
ionice.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
taskset.1 doc: schedutils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
taskset.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00