On Wed, Aug 31, 2016 at 02:16:12PM +0200, Samuel Thibault wrote:
> Linux' notion of nice values is already not
> really POSIX for root :) (POSIX doesn't define negative nice values).
It's been a while; but I'm almost confident that according to my last
reading of the POSIX man pages, the Linux implementation is actually
perfectly correct -- the POSIX description is just very confusing...
Note that this is a very old known issue, and there was previous
discussion. (Which I'm too lazy to try digging up...) My conclusion was
that trying to implement it correctly on top of the existing Mach
interfaces would be tricky, for no real benefit -- we should just change
the kernel interface instead to directly provide the semantics needed
for POSIX behaviour.