]> granicus.if.org Git - apache/commitdiff
ap_reclaim_child_processes() ignores its first argument
authorStefan Fritsch <sf@apache.org>
Sun, 21 Aug 2016 14:09:00 +0000 (14:09 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 21 Aug 2016 14:09:00 +0000 (14:09 +0000)
note this in the docs, add comment

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757061 13f79535-47bb-0310-9956-ffa450edef68

include/mpm_common.h
server/mpm_unix.c

index b366a08b12befbbd4a12d75115be1d62180dce03..30927ed196cc2ca608f431c49f775021433f8cac 100644 (file)
@@ -94,7 +94,8 @@ typedef void ap_reclaim_callback_fn_t(int childnum, pid_t pid,
  * Make sure all child processes that have been spawned by the parent process
  * have died.  This includes process registered as "other_children".
  *
- * @param terminate Either 1 or 0.  If 1, send the child processes SIGTERM
+ * @param terminate Not Implemented, value is ignored !!!
+ *        Either 1 or 0.  If 1, send the child processes SIGTERM
  *        each time through the loop.  If 0, give the process time to die
  *        on its own before signalling it.
  * @param mpm_callback Callback invoked for each dead child process
index db3b610702f98b0b4bdaf1a93ef9f004dc630b60..06318fe4a267f91eb18a176a1a34d80bfcdc3a17 100644 (file)
@@ -173,6 +173,7 @@ static int reclaim_one_pid(pid_t pid, action_t action)
     return 0;
 }
 
+/* XXX The terminate argument is ignored. Implement or remove? */
 AP_DECLARE(void) ap_reclaim_child_processes(int terminate,
                                             ap_reclaim_callback_fn_t *mpm_callback)
 {