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