[PATCH] getpriority.2: Adjust the process priority range

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

 



The {get,set}priority man pages currently lists the process's priority
range as being from 40..1 however it should be 40..0 as 0 would be for
a nice of -20.

Signed-off-by: Andrew Clayton <andrew@xxxxxxxxxxxxxxxxxx>
---

Perhaps the 40 should be 39 as the kernel seems to limit the nice range
from -20 to 19 in kernel/sched/core.c::set_user_nice().

 man2/getpriority.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/getpriority.2 b/man2/getpriority.2
index b39bdcf..066cf75 100644
--- a/man2/getpriority.2
+++ b/man2/getpriority.2
@@ -197,7 +197,7 @@ The actual priority range varies between kernel versions.
 Linux before 1.3.36 had \-infinity..15.
 Since kernel 1.3.43, Linux has the range \-20..19.
 Within the kernel, nice values are actually represented
-using the corresponding range 40..1
+using the corresponding range 40..0
 (since negative numbers are error codes) and these are the values
 employed by the
 .BR setpriority ()
-- 
1.8.5.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux 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