comparison src/os/unix/ngx_process_cycle.c @ 598:be70f83b184f NGINX_0_8_51

nginx 0.8.51 *) Change: the "secure_link_expires" directive has been canceled. *) Change: a logging level of resolver errors has been lowered from "alert" to "error". *) Feature: now a listen socket "ssl" parameter may be set several times.
author Igor Sysoev <http://sysoev.ru>
date Mon, 27 Sep 2010 00:00:00 +0400
parents be4f34123024
children 7ea1bba9a4f6
comparison
equal deleted inserted replaced
597:1695031dbfed 598:be70f83b184f
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