klibc-bot for Christoph Mathys
2012-Oct-01 13:24 UTC
[klibc] [klibc:master] [BUILTIN] Add support for ulimit -r
Commit-ID: a756665f42b1f160714039f2562868bb5ba340e0 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=a756665f42b1f160714039f2562868bb5ba340e0 Author: Christoph Mathys <eraserix at gmail.com> AuthorDate: Tue, 3 Jul 2012 17:36:01 +0800 Committer: maximilian attems <max at stro.at> CommitDate: Mon, 1 Oct 2012 15:14:32 +0200 [klibc] [BUILTIN] Add support for ulimit -r I recently found myself in need to have dash support 'ulimit -r' to set maximum realtime priority. Attached is a patch that adds the parameter to the builtin ulimit command and updates the manpage. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: maximilian attems <max at stro.at> --- usr/dash/miscbltin.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c index 8be613a..09282be 100644 --- a/usr/dash/miscbltin.c +++ b/usr/dash/miscbltin.c @@ -447,6 +447,9 @@ static const struct limits limits[] = { #ifdef RLIMIT_LOCKS { "locks", RLIMIT_LOCKS, 1, 'w' }, #endif +#ifdef RLIMIT_RTPRIO + { "rtprio", RLIMIT_RTPRIO, 1, 'r' }, +#endif { (char *) 0, 0, 0, '\0' } };
Seemingly Similar Threads
- [klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
- [klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
- 2.0.2 klibc release
- Getting lowest latency sound?
- [klibc:update-dash] builtin: Fix handling of trailing IFS white spaces