From c35eabfe0ddad47f11bb0c8b396e5a50b4845567 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 22 Mar 2013 11:23:40 +0000 Subject: util.pposix: Allow fetching RLIMIT_NICE when available --- util-src/pposix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util-src') 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 @@ -483,6 +483,9 @@ int string2resource(const char *s) { if (!strcmp(s, "MEMLOCK")) return RLIMIT_MEMLOCK; 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; } -- cgit v1.2.3