attempt to set priority to -10 on startup. closes #65

This commit is contained in:
Antonio SJ Musumeci 2015-03-17 20:39:20 -04:00
parent 7552ad6781
commit 5fb277529f
3 changed files with 15 additions and 3 deletions

View file

@ -40,7 +40,7 @@ namespace mergerfs
}
int
maxout_rlimit(int resource)
maxout_rlimit(const int resource)
{
int rv;
struct rlimit rlim;
@ -78,5 +78,13 @@ namespace mergerfs
{
return maxout_rlimit(RLIMIT_FSIZE);
}
int
setpriority(const int prio)
{
const int SELF = 0;
return ::setpriority(PRIO_PROCESS,SELF,prio);
}
}
}