This is an automated email from the ASF dual-hosted git repository.

mxmanghi pushed a commit to branch quattuor
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git

commit 2596517147631921bc3e207595a4e194d130ab59
Author: Massimo Manghi <mxman...@apache.org>
AuthorDate: Tue Jan 10 10:13:39 2023 +0100

    fixing some comments
---
 ChangeLog                                | 3 +++
 src/mod_rivet_ng/mod_rivet.c             | 9 ++++-----
 src/mod_rivet_ng/worker_prefork_common.c | 2 +-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e058337..0f3f17a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-01-10 Massimo Manghi <mxman...@apache.org>
+       * src/mod_rivet_ng/mod_rivet.c: fixing some
+ comments
 2023-01-09 Massimo Manghi <mxman...@apache.org>
        * src/mod_rivet_ng/TclWebaapache.c: replaced CONST84 with CONST86 which 
is supported by Tcl 8.7
        * src/mod_rivet_ng/rivet[Channel|Core].c: 
diff --git a/src/mod_rivet_ng/mod_rivet.c b/src/mod_rivet_ng/mod_rivet.c
index 088d1f2..37549ff 100644
--- a/src/mod_rivet_ng/mod_rivet.c
+++ b/src/mod_rivet_ng/mod_rivet.c
@@ -324,7 +324,7 @@ Rivet_RunServerInit (apr_pool_t *pPool, apr_pool_t *pLog, 
apr_pool_t *pTemp, ser
             Tcl_Obj*    server_init;
 
             /* either we want separate virtual interps or we haven't
-             * created an interpreter so far we create one
+             * created an interpreter so far, thus we create one
              */
 
             if ((interp_obj == NULL) || 
module_globals->separate_virtual_interps)
@@ -514,9 +514,9 @@ static void Rivet_ChildInit (apr_pool_t *pChild, server_rec 
*server)
     //Tcl_InitNotifier();
 #endif
 
-    /* We can rely on the existence of module_globals only we are
+    /* We can rely on the existence of module_globals only when we are
      * running the prefork MPM, otherwise the pointer is NULL and
-     * the structure need to be filled
+     * the structure needs to be filled
      */
 
     if (module_globals == NULL)
@@ -533,8 +533,7 @@ static void Rivet_ChildInit (apr_pool_t *pChild, server_rec 
*server)
     apr_thread_mutex_create(&module_globals->pool_mutex, 
APR_THREAD_MUTEX_UNNESTED, pChild);
 
     /* Once we have established a pool with the same lifetime of the child 
process we
-     * process all the configured server records assigning an integer as 
unique key
-     * to each of them
+     * process all the configured server records assigning to each record a 
unique integer key
      */
 
     root_server_conf = RIVET_SERVER_CONF(server->module_config);
diff --git a/src/mod_rivet_ng/worker_prefork_common.c 
b/src/mod_rivet_ng/worker_prefork_common.c
index 18f7e5c..48c4b36 100644
--- a/src/mod_rivet_ng/worker_prefork_common.c
+++ b/src/mod_rivet_ng/worker_prefork_common.c
@@ -178,7 +178,7 @@ void Rivet_ProcessorCleanup (rivet_thread_private* private)
      * Rivet channel is set as stdout channel of Tcl and as such is treated
      * by Tcl_UnregisterChannel is a special way. When its refCount reaches 1
      * the channel is released immediately by forcing the refCount to 0
-     * (see Tcl source code: generic/TclIO.c). Unregistering for each 
interpreter
+     * (see Tcl source code: generic/TclIO.c). Unregistering each interpreter
      * causes the process to segfault at least for certain Tcl versions.
      * In order to avoid the crash the channel is unset as stdout
      */


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@tcl.apache.org
For additional commands, e-mail: commits-h...@tcl.apache.org

Reply via email to