aboutsummaryrefslogtreecommitdiffstats
path: root/man/man2/sched_setaffinity.2
diff options
context:
space:
mode:
Diffstat (limited to 'man/man2/sched_setaffinity.2')
-rw-r--r--man/man2/sched_setaffinity.24
1 files changed, 2 insertions, 2 deletions
diff --git a/man/man2/sched_setaffinity.2 b/man/man2/sched_setaffinity.2
index 1bdfa4e63e..fa49c716db 100644
--- a/man/man2/sched_setaffinity.2
+++ b/man/man2/sched_setaffinity.2
@@ -370,7 +370,7 @@ main(int argc, char *argv[])
case 0: /* Child */
CPU_SET(childCPU, &set);
\&
- if (sched_setaffinity(getpid(), sizeof(set), &set) == \-1)
+ if (sched_setaffinity(0, sizeof(set), &set) == \-1)
err(EXIT_FAILURE, "sched_setaffinity");
\&
for (unsigned int j = 0; j < nloops; j++)
@@ -381,7 +381,7 @@ main(int argc, char *argv[])
default: /* Parent */
CPU_SET(parentCPU, &set);
\&
- if (sched_setaffinity(getpid(), sizeof(set), &set) == \-1)
+ if (sched_setaffinity(0, sizeof(set), &set) == \-1)
err(EXIT_FAILURE, "sched_setaffinity");
\&
for (unsigned int j = 0; j < nloops; j++)