diff options
author | Christoph Mathys <eraserix@gmail.com> | 2012-07-03 17:36:01 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-07-03 17:36:01 +0800 |
commit | 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 (patch) | |
tree | e83c297de3cfa32ab1b05ce24b489af55fc21a20 /src/miscbltin.c | |
parent | Avoid overflow for very long variable name (diff) | |
download | dash-46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4.tar.gz dash-46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4.zip |
[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@gondor.apana.org.au>
Diffstat (limited to 'src/miscbltin.c')
-rw-r--r-- | src/miscbltin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/miscbltin.c b/src/miscbltin.c index e354df4..b596fd2 100644 --- a/src/miscbltin.c +++ b/src/miscbltin.c @@ -392,6 +392,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' } }; |