projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929f63e
)
ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO)
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 4 Apr 2011 00:12:14 +0000
(
02:12
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 4 Apr 2011 00:12:14 +0000
(
02:12
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/shell_common.c
patch
|
blob
|
history
diff --git
a/shell/shell_common.c
b/shell/shell_common.c
index f02ed81eac07d2482e421bca9f3357eae1cc8ed3..68659abd339bdaf0964a97877ed53a1e454edb19 100644
(file)
--- 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
;