Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.c @ 3762:89002ac695e5
worker_rlimit_core should be off_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 15 Sep 2010 15:24:21 +0000 |
parents | ab353d7dc182 |
children | 6843e7c492b7 |
comparison
equal
deleted
inserted
replaced
3761:0a84dc5f5613 | 3762:89002ac695e5 |
---|---|
854 "setrlimit(RLIMIT_NOFILE, %i) failed", | 854 "setrlimit(RLIMIT_NOFILE, %i) failed", |
855 ccf->rlimit_nofile); | 855 ccf->rlimit_nofile); |
856 } | 856 } |
857 } | 857 } |
858 | 858 |
859 if (ccf->rlimit_core != NGX_CONF_UNSET_SIZE) { | 859 if (ccf->rlimit_core != NGX_CONF_UNSET) { |
860 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core; | 860 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core; |
861 rlmt.rlim_max = (rlim_t) ccf->rlimit_core; | 861 rlmt.rlim_max = (rlim_t) ccf->rlimit_core; |
862 | 862 |
863 if (setrlimit(RLIMIT_CORE, &rlmt) == -1) { | 863 if (setrlimit(RLIMIT_CORE, &rlmt) == -1) { |
864 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, | 864 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, |
865 "setrlimit(RLIMIT_CORE, %i) failed", | 865 "setrlimit(RLIMIT_CORE, %O) failed", |
866 ccf->rlimit_core); | 866 ccf->rlimit_core); |
867 } | 867 } |
868 } | 868 } |
869 | 869 |
870 #ifdef RLIMIT_SIGPENDING | 870 #ifdef RLIMIT_SIGPENDING |