29 Jun
2004
29 Jun
'04
12:21
Sorry, but you should read more closely... ---snip--- DESCRIPTION sched_setaffinity sets the CPU affinity mask of the process denoted by pid. If pid is zero, then the current process is used. ---snip--- Furthermore, strace verifies that the libc is calling getpid when zero is passed. The bug persists with a getpid() replacement.