httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r938594 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c
Date Tue, 27 Apr 2010 18:30:55 GMT
Author: trawick
Date: Tue Apr 27 18:30:55 2010
New Revision: 938594

URL: http://svn.apache.org/viewvc?rev=938594&view=rev
Log:
add a debug log of the number of processes being terminated
gracefully on the current error scan

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c?rev=938594&r1=938593&r2=938594&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_pm_main.c Tue Apr 27 18:30:55 2010
@@ -282,6 +282,7 @@ static void scan_errorlist(server_rec * 
     fcgid_server_conf *sconf =
         ap_get_module_config(main_server->module_config,
                              &fcgid_module);
+    int graceful_terminations = 0;
 
     /* Should I check the busy list? */
     if (procmgr_must_exit()
@@ -326,6 +327,7 @@ static void scan_errorlist(server_rec * 
                               current_node->proc_pool);
         if (!dummy) {
             proc_kill_gracefully(current_node, main_server);
+            ++graceful_terminations;
             apr_pool_userdata_set("set", HAS_GRACEFUL_KILL,
                                   apr_pool_cleanup_null,
                                   current_node->proc_pool);
@@ -350,6 +352,12 @@ static void scan_errorlist(server_rec * 
     }
     previous_node->next_index = temp_error_header.next_index;
     proctable_pm_unlock(main_server);
+
+    if (graceful_terminations) {
+        ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, main_server,
+                     "mod_fcgid: gracefully terminated %d processes",
+                     graceful_terminations);
+    }
 }
 
 static void kill_all_subprocess(server_rec * main_server)



Mime
View raw message