]> git.meshlink.io Git - catta/commitdiff
if RLIMIT_NPROC is not available but used in the config file, don't fail but warn
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Jun 2006 21:29:37 +0000 (21:29 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Jun 2006 21:29:37 +0000 (21:29 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1222 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/main.c

index 82a1679a9e1b05daa4677d7921e36f0b4e6202e0..0c85760f6b7932c1ac9bee92b8ec4cf791162a14 100644 (file)
@@ -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);