util-linux/schedutils
Karel Zak 88b60f0bde chrt: follow nice setting, prefer sched_setscheduler()
* do not reset 'nice' setting by sched_setattr(), if 'nice' setting
  is not zero then chrt ends with EPERM for non-root users:

  $ renice -n 5 -p $$; chrt -v -b 0 date
  12475 (process ID) old priority 0, new priority 5
  chrt: failed to set pid 0's policy: Operation not permitted

* it seems more elegant to always use old sched_setscheduler() API for
  non-deadline policies; in this case we do not need getpriority()
  to keep 'nice' unchanged.

Addresses: https://github.com/karelzak/util-linux/issues/359
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-03 11:02:35 +02:00
..
chrt.1 chrt: remove duplicate words and tweak some phrasings in the man page 2016-03-17 12:18:52 +01:00
chrt.c chrt: follow nice setting, prefer sched_setscheduler() 2016-10-03 11:02:35 +02:00
ionice.1 ionice: clarify description of --classdata 2016-06-07 12:49:21 +02:00
ionice.c ionice: drop the duplicate docstring 2015-01-26 11:22:12 +01:00
Makemodule.am build-sys: add BUILD_CHRT 2014-05-21 13:35:01 +02:00
taskset.1 taskset: clarify that masks are always hex in man page 2016-08-09 11:31:41 +02:00
taskset.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00