diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index f8518e164..865c81f7f 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -34,6 +34,9 @@ #define DEFAULT_SCORE 10.0 +#define DEFAULT_RLIMIT_NOFILE 2048 +#define DEFAULT_RLIMIT_MAXCORE 0 + extern int yylineno; extern char *yytext; @@ -644,6 +647,8 @@ check_worker_conf (struct config_file *cfg, struct worker_conf *c) #else c->count = DEFAULT_WORKERS_NUM; #endif + c->rlimit_nofile = DEFAULT_RLIMIT_NOFILE; + c->rlimit_maxcore = DEFAULT_RLIMIT_MAXCORE; } return c; |