Klaus Demo nginx / 888ea84
worker_rlimit_core supports size in K, M, and G Igor Sysoev 15 years ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
108108
109109 { ngx_string("worker_rlimit_core"),
110110 NGX_MAIN_CONF|NGX_DIRECT_CONF|NGX_CONF_TAKE1,
111 ngx_conf_set_num_slot,
111 ngx_conf_set_size_slot,
112112 0,
113113 offsetof(ngx_core_conf_t, rlimit_core),
114114 NULL },
619619 ccf->debug_points = NGX_CONF_UNSET;
620620
621621 ccf->rlimit_nofile = NGX_CONF_UNSET;
622 ccf->rlimit_core = NGX_CONF_UNSET;
622 ccf->rlimit_core = NGX_CONF_UNSET_SIZE;
623623 ccf->rlimit_sigpending = NGX_CONF_UNSET;
624624
625625 ccf->user = (ngx_uid_t) NGX_CONF_UNSET_UINT;
6767 ngx_int_t debug_points;
6868
6969 ngx_int_t rlimit_nofile;
70 ngx_int_t rlimit_core;
7170 ngx_int_t rlimit_sigpending;
71 size_t rlimit_core;
7272
7373 int priority;
7474
786786 }
787787 }
788788
789 if (ccf->rlimit_core != NGX_CONF_UNSET) {
789 if (ccf->rlimit_core != NGX_CONF_UNSET_SIZE) {
790790 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core;
791791 rlmt.rlim_max = (rlim_t) ccf->rlimit_core;
792792