diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-11-01 00:34:43 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-11-01 00:34:43 +0000 |
commit | 44d7c9ad9bcfd8ab55d4ef7f6595c7ffd65da35d (patch) | |
tree | af951dfe5cae070db74a02a06c6aec0f08c1eef9 /src/daemon/main.c | |
parent | e706f7bed759165573c9ec7e5e4f79a2f9b74228 (diff) |
add nice and rtprio resource limit support; make rtprio and nice level to use configurable; some minor updates
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2010 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index cd3cfcc8..249131e0 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -307,6 +307,12 @@ static void set_all_rlimits(const pa_daemon_conf *conf) { #ifdef RLIMIT_MEMLOCK set_one_rlimit(&conf->rlimit_memlock, RLIMIT_MEMLOCK, "RLIMIT_MEMLOCK"); #endif +#ifdef RLIMIT_NICE + set_one_rlimit(&conf->rlimit_nice, RLIMIT_NICE, "RLIMIT_NICE"); +#endif +#ifdef RLIMIT_RTPRIO + set_one_rlimit(&conf->rlimit_rtprio, RLIMIT_RTPRIO, "RLIMIT_RTPRIO"); +#endif } #endif |