From da49ae181495720062322f10b4f31b380024fe03 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 21 Jul 2007 06:59:36 +0000 Subject: [PATCH] Note what thread is affected if 'pid' is specified as 0, or as the value returned by getpid(). --- man2/sched_setaffinity.2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man2/sched_setaffinity.2 b/man2/sched_setaffinity.2 index 0212e45c4..5d947dbab 100644 --- a/man2/sched_setaffinity.2 +++ b/man2/sched_setaffinity.2 @@ -185,6 +185,12 @@ The value returned from a call to .BR gettid (2) can be passed in the argument .IR pid . +Specifying +.I pid +as 0 will set the attribute for the current thread, +and passing the value returned from a call to +.BR getpid (2) +will set the attribute for the main thread of the thread group. A child created via .BR fork (2)