diff options
author | jeff <jeff@FreeBSD.org> | 2008-03-12 23:54:40 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-03-12 23:54:40 +0000 |
commit | 90cc368fe8d8875af227ffe20907bc15e7c6d2af (patch) | |
tree | 3d21cbaea7c437eaa6537a6a2129d9176b0f0815 /usr.bin/cpuset/cpuset.c | |
parent | ba621be3a9afcd65df9674a521af784165a5b950 (diff) | |
download | FreeBSD-src-90cc368fe8d8875af227ffe20907bc15e7c6d2af.zip FreeBSD-src-90cc368fe8d8875af227ffe20907bc15e7c6d2af.tar.gz |
- When running a new command cause cpuset to operate on the per-thread mask
by default rather than the setmask. This is consistent with the linux
tool and more consistent with the notion that the default level is
the process level. The cpuset mask can still be modified by specifying
the -c option. You can not set the per-thread and cpuset mask in
a single command.
- Update the man page to reflect this change.
Contributed by: gallatin
Diffstat (limited to 'usr.bin/cpuset/cpuset.c')
-rw-r--r-- | usr.bin/cpuset/cpuset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cpuset/cpuset.c b/usr.bin/cpuset/cpuset.c index 41a715d..c31ebb7 100644 --- a/usr.bin/cpuset/cpuset.c +++ b/usr.bin/cpuset/cpuset.c @@ -257,7 +257,7 @@ main(int argc, char *argv[]) * The user wants to run a command with a set and possibly cpumask. */ if (argc) { - if (pflag | rflag | tflag || cflag) + if (pflag | rflag | tflag) usage(); if (sflag) { if (cpuset_setid(CPU_WHICH_PID, -1, setid)) @@ -267,7 +267,7 @@ main(int argc, char *argv[]) err(argc, "newid"); } if (lflag) { - if (cpuset_setaffinity(CPU_LEVEL_CPUSET, CPU_WHICH_PID, + if (cpuset_setaffinity(level, CPU_WHICH_PID, -1, sizeof(mask), &mask) != 0) err(EXIT_FAILURE, "setaffinity"); } |