From 82fdd7c7d0e5d2061242986a28eca14e5550f8dd Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 29 Jul 2012 08:07:43 +0200 Subject: [PATCH] ioprio_set.2: Document who==0 for IOPRIO_WHO_PROCESS and IOPRIO_WHO_PGRP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For IOPRIO_WHO_PROCESS, who==0 means operate on the caller. For IOPRIO_WHO_PGRP, who==0 means operate on the caller's process group. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652443 Reported-by: Марк Коренберг Reported-by: Kalle Olavi Niemitalo Signed-off-by: Michael Kerrisk --- man2/ioprio_set.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/ioprio_set.2 b/man2/ioprio_set.2 index c1dd64c00..7745d8e31 100644 --- a/man2/ioprio_set.2 +++ b/man2/ioprio_set.2 @@ -56,15 +56,23 @@ is interpreted, and has one of the following values: .B IOPRIO_WHO_PROCESS .I who is a process ID or thread ID identifying a single process or thread. +If +.I who +is 0, then operate on the calling thread. .TP .B IOPRIO_WHO_PGRP .I who is a process group ID identifying all the members of a process group. +If +.I who +is 0, then operate on the process group of which the caller is a member. .TP .B IOPRIO_WHO_USER .I who is a user ID identifying all of the processes that have a matching real UID. +.\" FIXME who==0 needs to be documented, +.\" See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652443 .PP If .I which