Welcome! Log In Create A New Profile

Advanced

patch to see setrlmit

Aleksandar Lazic
July 15, 2010 07:36AM
Dear Igor,

mybe you could add this patch to see in the error.log the setrlimit
similar as the getrlimit.

Thank you

BR

Aleksdiff -ru nginx-0.8.45.orig/src/os/unix/ngx_process_cycle.c nginx-0.8.45/src/os/unix/ngx_process_cycle.c
--- nginx-0.8.45.orig/src/os/unix/ngx_process_cycle.c 2010-03-25 09:10:10.000000000 +0000
+++ nginx-0.8.45/src/os/unix/ngx_process_cycle.c 2010-07-15 11:23:43.000000000 +0000
@@ -853,7 +853,11 @@
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
"setrlimit(RLIMIT_NOFILE, %i) failed",
ccf->rlimit_nofile);
- }
+ }else{
+ ngx_log_error(NGX_LOG_NOTICE, cycle->log, 0,
+ "setrlimit(RLIMIT_NOFILE, %i) ok",
+ ccf->rlimit_nofile);
+ }
}

if (ccf->rlimit_core != NGX_CONF_UNSET_SIZE) {
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

patch to see setrlmit

Aleksandar Lazic July 15, 2010 07:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 142
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready