Re: [PATCH] Correct max priority in renice man page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 08, 2014 at 01:22:10PM -0500, Phillip Susi wrote:
> The man page stated that the PRIO_MAX is 20.  While this
> is correct, the header definition is wrong and the max
> value is actually 19.

 I have removed all notes about PRIO_MAX from the man page. The kernel
 syscalls use hardcoded limits rather than anything from header files.

 SYSCALL_DEFINE3(setpriority, int, which, int, who, int, niceval)
    ...
	if (niceval < -20)
		niceval = -20;
	if (niceval > 19)
		niceval = 19;

 and almost the same is SYSCALL_DEFINE1(nice...

 :-)

>  sys-utils/renice.1 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

 Applied, thanks.


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux