summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-06-21 21:29:37 +0000
committerLennart Poettering <lennart@poettering.net>2006-06-21 21:29:37 +0000
commitcebb8af4a847631350541b27aa1343be3fc3443a (patch)
tree3a95037422e5e61ce36f05490c652ec054668097
parent57f1965d69bf74583abe6cbff44623398407a20e (diff)
if RLIMIT_NPROC is not available but used in the config file, don't fail but warn
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1222 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-daemon/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c
index 82a1679..0c85760 100644
--- a/avahi-daemon/main.c
+++ b/avahi-daemon/main.c
@@ -594,10 +594,12 @@ static int load_config_file(DaemonConfig *c) {
} else if (strcasecmp(p->key, "rlimit-stack") == 0) {
c->rlimit_stack_set = 1;
c->rlimit_stack = atoi(p->value);
-#ifdef RLIMIT_NPROC
} else if (strcasecmp(p->key, "rlimit-nproc") == 0) {
+#ifdef RLIMIT_NPROC
c->rlimit_nproc_set = 1;
c->rlimit_nproc = atoi(p->value);
+#else
+ avahi_log_error("Ignoring configuration key \"%s\" in group \"%s\"\n", p->key, g->name);
#endif
} else {
avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name);