]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not touch limits if not asked explicitly.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Oct 2014 16:46:46 +0000 (17:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Oct 2014 16:46:46 +0000 (17:46 +0100)
Reported by: @citrin

src/libserver/cfg_utils.c

index ed764a9ef0562cb3e382a02d088745571e390dcf..56fb8d3ca335836299060d0f904ee1e4946f21b0 100644 (file)
@@ -750,8 +750,8 @@ rspamd_config_new_worker (struct rspamd_config *cfg,
 #else
                c->count = DEFAULT_WORKERS_NUM;
 #endif
-               c->rlimit_nofile = DEFAULT_RLIMIT_NOFILE;
-               c->rlimit_maxcore = DEFAULT_RLIMIT_MAXCORE;
+               c->rlimit_nofile = 0;
+               c->rlimit_maxcore = 0;
        }
 
        return c;