aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-12-24 18:13:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-12-24 18:13:06 +0000
commit888ea84ce09973b5a7b50dc131fbdfa9fafa703d (patch)
treebbfa678333601ae1a66e3565ba02d7799683ee3e /src/core/nginx.c
parentb4887b289e5ef3fd18b135f970ff0f6d24f3d8a4 (diff)
downloadnginx-888ea84ce09973b5a7b50dc131fbdfa9fafa703d.tar.gz
nginx-888ea84ce09973b5a7b50dc131fbdfa9fafa703d.zip
worker_rlimit_core supports size in K, M, and G
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 26ed69eab..47dafe141 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -109,7 +109,7 @@ static ngx_command_t ngx_core_commands[] = {
{ ngx_string("worker_rlimit_core"),
NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1,
- ngx_conf_set_num_slot,
+ ngx_conf_set_size_slot,
0,
offsetof(ngx_core_conf_t, rlimit_core),
NULL },
@@ -620,7 +620,7 @@ ngx_core_module_create_conf(ngx_cycle_t *cycle)
ccf->debug_points = NGX_CONF_UNSET;
ccf->rlimit_nofile = NGX_CONF_UNSET;
- ccf->rlimit_core = NGX_CONF_UNSET;
+ ccf->rlimit_core = NGX_CONF_UNSET_SIZE;
ccf->rlimit_sigpending = NGX_CONF_UNSET;
ccf->user = (ngx_uid_t) NGX_CONF_UNSET_UINT;