Browse Source

Notice user, that root priviledges are required.

master
Rafal Kupiec 1 year ago
parent
commit
7704162255
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      cpuset.c

+ 4
- 0
cpuset.c View File

@ -132,6 +132,10 @@ int main(int argc, char *argv[]) {
return 1;
}
}
if(geteuid() != 0) {
printf("This program needs to be launched as root!\n");
return 1;
}
if(action == ACTION_ENABLE) {
if(!cpu || !mem) {
printf("No CPU or memory pinning specified!\n");


Loading…
Cancel
Save