diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 16:57:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 16:57:34 +0000 |
commit | 416e987cd6d43927e01220068ec40e693ce7757e (patch) | |
tree | 9a91f6e5906ecd033aff65e308a7e10695703cb5 /src/libutil/util.c | |
parent | 4252d607561fe062a14d2a00d7a636049365309c (diff) | |
download | rspamd-416e987cd6d43927e01220068ec40e693ce7757e.tar.gz rspamd-416e987cd6d43927e01220068ec40e693ce7757e.zip |
Increase stack size after fork
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 1 |
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 |