aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-25 16:57:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-25 16:57:34 +0000
commit416e987cd6d43927e01220068ec40e693ce7757e (patch)
tree9a91f6e5906ecd033aff65e308a7e10695703cb5 /src/libutil/util.c
parent4252d607561fe062a14d2a00d7a636049365309c (diff)
downloadrspamd-416e987cd6d43927e01220068ec40e693ce7757e.tar.gz
rspamd-416e987cd6d43927e01220068ec40e693ce7757e.zip
Increase stack size after fork
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index b0376ca1e..9ba67e1e6 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -1998,6 +1998,7 @@ rspamd_init_libs (void)
/* Set stack size for pcre */
getrlimit (RLIMIT_STACK, &rlim);
rlim.rlim_cur = 100 * 1024 * 1024;
+ rlim.rlim_max = rlim.rlim_cur;
setrlimit (RLIMIT_STACK, &rlim);
#ifdef GMIME_ENABLE_RFC2047_WORKAROUNDS