Software /
code /
prosody
Changeset
5359:43517e649c53
util.pposix: Allow fetching RLIMIT_NICE when available
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 22 Mar 2013 11:23:40 +0000 |
parents | 5358:4d37d792c4d5 |
children | 5360:e44cfbf0ae8d |
files | util-src/pposix.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/pposix.c Fri Mar 22 11:22:50 2013 +0000 +++ b/util-src/pposix.c Fri Mar 22 11:23:40 2013 +0000 @@ -484,6 +484,9 @@ if (!strcmp(s, "NPROC")) return RLIMIT_NPROC; if (!strcmp(s, "RSS")) return RLIMIT_RSS; #endif +#ifdef RLIMIT_NICE + if (!strcmp(s, "NICE")) return RLIMIT_NICE; +#endif return -1; }