aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-03-22 14:22:46 +0000
committerMatthew Wild <mwild1@gmail.com>2013-03-22 14:22:46 +0000
commit4f7c31c0f98b9b4fd6ff12e8770dbdd5bff8cea2 (patch)
treeb1bb7539874dc7f64bb74173129613d40fe99e93 /util-src/pposix.c
parent1f4c3c34e97e3def573619480115c6a02300af08 (diff)
parentb8efb428ea0ddea38732edc873281552ffe592e5 (diff)
downloadprosody-4f7c31c0f98b9b4fd6ff12e8770dbdd5bff8cea2.tar.gz
prosody-4f7c31c0f98b9b4fd6ff12e8770dbdd5bff8cea2.zip
Merge 0.9->trunk
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 05303d99..99a308cf 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -484,6 +484,9 @@ int string2resource(const char *s) {
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;
}