diff --git a/man2/sched_setaffinity.2 b/man2/sched_setaffinity.2 index 2ba620026..da2132226 100644 --- a/man2/sched_setaffinity.2 +++ b/man2/sched_setaffinity.2 @@ -32,7 +32,7 @@ .\" 2008-11-12, mtk, removed CPU_*() macro descriptions to a .\" separate CPU_SET(3) page. .\" -.TH SCHED_SETAFFINITY 2 2008-11-12 "Linux" "Linux Programmer's Manual" +.TH SCHED_SETAFFINITY 2 2008-11-13 "Linux" "Linux Programmer's Manual" .SH NAME sched_setaffinity, sched_getaffinity \- \ set and get a process's CPU affinity mask @@ -172,6 +172,10 @@ as 0 will set the attribute for the calling 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. +(If you are using the POSIX threads API, then use +.B pthread_setaffinity_np(3) +instead of +.BR sched_setaffinity ().) A child created via .BR fork (2)