From 58627ec0d81943523ecb26a03564cb12f73b3683 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 26 Nov 2016 15:16:29 +0100 Subject: [PATCH] sched.7: Note error that occurs when writing invalid value to /proc/PID/autogroup Signed-off-by: Michael Kerrisk --- man7/sched.7 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man7/sched.7 b/man7/sched.7 index d82813158..d53983ad7 100644 --- a/man7/sched.7 +++ b/man7/sched.7 @@ -762,8 +762,12 @@ This file can also be used to modify the CPU bandwidth allocated to an autogroup. This is done by writing a number in the "nice" range to the file to set the autogroup's nice value. -The allowed range is from +19 (low priority) to \-20 (high priority), -and the setting has the same effect as modifying the nice level via +The allowed range is from +19 (low priority) to \-20 (high priority). +(Writing values outside of this range causes +.BR write (2) +to fail with the error +.BR EINVAL .) +The setting has the same effect as modifying the nice level via .BR getpriority (2). (For a discussion of the nice value, see .BR getpriority (2).)