You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by mx...@apache.org on 2015/05/21 13:13:41 UTC
svn commit: r1680824 - in /tcl/rivet/trunk: ChangeLog
src/mod_rivet/rivet_prefork_mpm.c
Author: mxmanghi
Date: Thu May 21 11:13:41 2015
New Revision: 1680824
URL: http://svn.apache.org/r1680824
Log:
* src/mod_rivet/rivet_prefork_mpm.c: child processes created by fork calls
inherit an interpreter that needs to import the ::rivet namespace when
configured that way
Modified:
tcl/rivet/trunk/ChangeLog
tcl/rivet/trunk/src/mod_rivet/rivet_prefork_mpm.c
Modified: tcl/rivet/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/ChangeLog?rev=1680824&r1=1680823&r2=1680824&view=diff
==============================================================================
--- tcl/rivet/trunk/ChangeLog (original)
+++ tcl/rivet/trunk/ChangeLog Thu May 21 11:13:41 2015
@@ -1,3 +1,8 @@
+2015-05-21 Massimo Manghi <mx...@apache.org>
+ * src/mod_rivet/rivet_prefork_mpm.c: child processes created by fork calls
+ inherit an interpreter that needs to import the ::rivet namespace when
+ configured that way
+
2015-05-19 Massimo Manghi <mx...@apache.org>
* src/rivet.h: macro THREAD_PRIVATE_DATA now simply casts ClientData
pointer to a rivet_thread_private pointer
Modified: tcl/rivet/trunk/src/mod_rivet/rivet_prefork_mpm.c
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/mod_rivet/rivet_prefork_mpm.c?rev=1680824&r1=1680823&r2=1680824&view=diff
==============================================================================
--- tcl/rivet/trunk/src/mod_rivet/rivet_prefork_mpm.c (original)
+++ tcl/rivet/trunk/src/mod_rivet/rivet_prefork_mpm.c Thu May 21 11:13:41 2015
@@ -83,6 +83,14 @@ void Rivet_MPM_ChildInit (apr_pool_t* po
Rivet_InitCore (module_globals->server_interp->interp,private);
+#ifdef RIVET_NAMESPACE_IMPORT
+ {
+ char* import_cmd = "namespace eval :: { namespace eval :: { namespace import -force ::rivet::* }";
+
+ Tcl_Eval (module_globals->server_interp->interp,import_cmd);
+ }
+#endif
+
/*
* We proceed creating the vhost interpreters database
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org