comparison src/os/unix/ngx_process_cycle.c @ 6127:967594ba7571

Removed the "worker_rlimit_sigpending" directive. It was only needed by the just removed rtsig module.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 23 Apr 2015 14:26:11 +0300
parents 4652f8f26b12
children b4cc553aafeb
comparison
equal deleted inserted replaced
6126:adba26ff70b5 6127:967594ba7571
838 "setrlimit(RLIMIT_CORE, %O) failed", 838 "setrlimit(RLIMIT_CORE, %O) failed",
839 ccf->rlimit_core); 839 ccf->rlimit_core);
840 } 840 }
841 } 841 }
842 842
843 #ifdef RLIMIT_SIGPENDING
844 if (ccf->rlimit_sigpending != NGX_CONF_UNSET) {
845 rlmt.rlim_cur = (rlim_t) ccf->rlimit_sigpending;
846 rlmt.rlim_max = (rlim_t) ccf->rlimit_sigpending;
847
848 if (setrlimit(RLIMIT_SIGPENDING, &rlmt) == -1) {
849 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
850 "setrlimit(RLIMIT_SIGPENDING, %i) failed",
851 ccf->rlimit_sigpending);
852 }
853 }
854 #endif
855
856 if (geteuid() == 0) { 843 if (geteuid() == 0) {
857 if (setgid(ccf->group) == -1) { 844 if (setgid(ccf->group) == -1) {
858 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, 845 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
859 "setgid(%d) failed", ccf->group); 846 "setgid(%d) failed", ccf->group);
860 /* fatal */ 847 /* fatal */