aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-13 17:46:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-13 17:46:46 +0100
commit051bf27668e4f4abb880bd2c259eec0eec7cb9c1 (patch)
treede00461bdd21a99559893262c0a97337437645ce /src/libserver
parent59391fdce82810af4034c1fb314560affcd86b71 (diff)
downloadrspamd-051bf27668e4f4abb880bd2c259eec0eec7cb9c1.tar.gz
rspamd-051bf27668e4f4abb880bd2c259eec0eec7cb9c1.zip
Do not touch limits if not asked explicitly.
Reported by: @citrin
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_utils.c4
1 files 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;