diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-27 00:48:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-27 00:48:53 +0100 |
commit | 3bcbe1d18f08667ca7b9d690e5c211c25831e0ad (patch) | |
tree | c7430ea6153ae6bbfffa3224fdc552dc421e9485 /src/daemon/main.c | |
parent | 4e31e00b63117f36df6b8ed4850e7ad6264e3da7 (diff) |
check for availability of RLIMIT_NOFILE and RLIMIT_AS before we make use of it
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index f4836072..9705f4c3 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -298,7 +298,9 @@ static void set_all_rlimits(const pa_daemon_conf *conf) { #ifdef RLIMIT_NPROC set_one_rlimit(&conf->rlimit_nproc, RLIMIT_NPROC, "RLIMIT_NPROC"); #endif +#ifdef RLIMIT_NOFILE set_one_rlimit(&conf->rlimit_nofile, RLIMIT_NOFILE, "RLIMIT_NOFILE"); +#endif #ifdef RLIMIT_MEMLOCK set_one_rlimit(&conf->rlimit_memlock, RLIMIT_MEMLOCK, "RLIMIT_MEMLOCK"); #endif |