comparison src/os/unix/ngx_process_cycle.c @ 270:6eb1e38f0f1f NGINX_0_5_5

nginx 0.5.5 *) Change: the -v switch does not show compiler information any more. *) Feature: the -V switch. *) Feature: the "worker_rlimit_core" directive supports size in K, M, and G. *) Bugfix: the nginx.pm module now could be installed by an unprivileged user. *) Bugfix: a segmentation fault might occur if the $r->request_body or $r->request_body_file methods were used. *) Bugfix: the ppc platform specific bugs.
author Igor Sysoev <http://sysoev.ru>
date Sun, 24 Dec 2006 00:00:00 +0300
parents 8e6d4d96ec4c
children 704622b2528a
comparison
equal deleted inserted replaced
269:aa9c0062124d 270:6eb1e38f0f1f
785 "setrlimit(RLIMIT_NOFILE, %i) failed", 785 "setrlimit(RLIMIT_NOFILE, %i) failed",
786 ccf->rlimit_nofile); 786 ccf->rlimit_nofile);
787 } 787 }
788 } 788 }
789 789
790 if (ccf->rlimit_core != NGX_CONF_UNSET) { 790 if (ccf->rlimit_core != NGX_CONF_UNSET_SIZE) {
791 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core; 791 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core;
792 rlmt.rlim_max = (rlim_t) ccf->rlimit_core; 792 rlmt.rlim_max = (rlim_t) ccf->rlimit_core;
793 793
794 if (setrlimit(RLIMIT_CORE, &rlmt) == -1) { 794 if (setrlimit(RLIMIT_CORE, &rlmt) == -1) {
795 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, 795 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,