]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chrt: use SCHED_FLAG_RESET_ON_FORK for sched_setattr()
authorKarel Zak <kzak@redhat.com>
Thu, 1 Oct 2020 08:40:27 +0000 (10:40 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Oct 2020 08:40:27 +0000 (10:40 +0200)
commit240634f80caf99590c4acdb432d9db7cbb8902df
tree93ff0857f301d05f8384aff75ad8217314283c6b
parentb76b4788be25f1fe37c8a39315d9d27c1cea0458
chrt: use SCHED_FLAG_RESET_ON_FORK for sched_setattr()

Reviewed by many people, used for years (but probably nobody uses
SCHED_DEADLINE with reset-on-fork), but we all missed:

- sched_setscheduler() uses SCHED_RESET_ON_FORK (0x40000000)
- sched_setattr() uses SCHED_FLAG_RESET_ON_FORK (0x01)

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1883013
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/chrt.c