patch to see setrlmit

Aleksandar Lazic al-nginx at none.at
Thu Jul 15 15:29:46 MSD 2010


Dear Igor,

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

Thank you

BR

Aleks
-------------- next part --------------
diff -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) {


More information about the nginx mailing list