public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH] Correct max priority in renice man page
Date: Mon, 10 Feb 2014 19:08:31 +0100	[thread overview]
Message-ID: <20140210180831.GQ8506@x2.net.home> (raw)
In-Reply-To: <1391883730-11767-1-git-send-email-psusi@ubuntu.com>

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@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2014-02-10 18:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 18:22 [PATCH] Correct max priority in renice man page Phillip Susi
2014-02-10 18:08 ` Karel Zak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140210180831.GQ8506@x2.net.home \
    --to=kzak@redhat.com \
    --cc=psusi@ubuntu.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox