diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 18:08:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 18:08:09 +0000 |
commit | 18ee02fee1a51478f4aee621a8297442540f8529 (patch) | |
tree | 19806baa72d7dfecfd607b752ada1ca3c8bb305d /src | |
parent | bdf0d1a32e6cc5b4dfd15a40da4194325e09118d (diff) | |
download | rspamd-18ee02fee1a51478f4aee621a8297442540f8529.tar.gz rspamd-18ee02fee1a51478f4aee621a8297442540f8529.zip |
Limit number of file descriptors opened by nftw
Diffstat (limited to 'src')
-rw-r--r-- | src/rspamd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 57a7648d6..3137bb3d7 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -649,7 +649,7 @@ rspamd_check_core_limits (struct rspamd_main *rspamd_main) cores_cbdata.total_size = 0; if (cfg->cores_dir && (cfg->max_cores_count || cfg->max_cores_size)) { - if (nftw (cfg->cores_dir, rspamd_check_core_cb, 20, FTW_MOUNT|FTW_PHYS) + if (nftw (cfg->cores_dir, rspamd_check_core_cb, 1, FTW_MOUNT|FTW_PHYS) == -1) { msg_err_main ("nftw failed for path %s: %s", cfg->cores_dir, strerror (errno)); |