Software /
code /
prosody
Diff
util-src/pposix.c @ 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 |
parent | 5176:7d0a8b255a37 |
child | 5449:35a271b4b920 |
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; }