From 051bf27668e4f4abb880bd2c259eec0eec7cb9c1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 13 Oct 2014 17:46:46 +0100 Subject: [PATCH] Do not touch limits if not asked explicitly. Reported by: @citrin --- src/libserver/cfg_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index ed764a9ef..56fb8d3ca 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -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; -- 2.39.5