From: Denys Vlasenko Date: Mon, 4 Apr 2011 00:12:14 +0000 (+0200) Subject: ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO) X-Git-Tag: 1_19_0~193 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e32d05b708a31716e0a788c43f81990436535140;p=oweals%2Fbusybox.git ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO) Signed-off-by: Denys Vlasenko --- diff --git a/shell/shell_common.c b/shell/shell_common.c index f02ed81ea..68659abd3 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -286,6 +286,12 @@ static const struct limits limits_tbl[] = { #ifdef RLIMIT_LOCKS { RLIMIT_LOCKS, 0, 'w', "locks" }, #endif +#ifdef RLIMIT_NICE + { RLIMIT_NICE, 0, 'e', "scheduling priority" }, +#endif +#ifdef RLIMIT_RTPRIO + { RLIMIT_RTPRIO, 0, 'r', "real-time priority" }, +#endif }; enum { @@ -327,6 +333,12 @@ static const char ulimit_opt_string[] = "-HSa" #endif #ifdef RLIMIT_LOCKS "w::" +#endif +#ifdef RLIMIT_NICE + "e::" +#endif +#ifdef RLIMIT_RTPRIO + "r::" #endif ;