Notice user, that root priviledges are required.
This commit is contained in:
parent
a4422e188e
commit
7704162255
4
cpuset.c
4
cpuset.c
|
@ -132,6 +132,10 @@ int main(int argc, char *argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(geteuid() != 0) {
|
||||||
|
printf("This program needs to be launched as root!\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
if(action == ACTION_ENABLE) {
|
if(action == ACTION_ENABLE) {
|
||||||
if(!cpu || !mem) {
|
if(!cpu || !mem) {
|
||||||
printf("No CPU or memory pinning specified!\n");
|
printf("No CPU or memory pinning specified!\n");
|
||||||
|
|
Loading…
Reference in New Issue