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 2014/07/18 13:08:56 UTC
svn commit: r1611588 - /tcl/rivet/trunk/src/experimental/mod_rivet.c
Author: mxmanghi
Date: Fri Jul 18 11:08:56 2014
New Revision: 1611588
URL: http://svn.apache.org/r1611588
Log:
fixed channel determination in Tcl for a threaded module!
Modified:
tcl/rivet/trunk/src/experimental/mod_rivet.c
Modified: tcl/rivet/trunk/src/experimental/mod_rivet.c
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/experimental/mod_rivet.c?rev=1611588&r1=1611587&r2=1611588&view=diff
==============================================================================
--- tcl/rivet/trunk/src/experimental/mod_rivet.c (original)
+++ tcl/rivet/trunk/src/experimental/mod_rivet.c Fri Jul 18 11:08:56 2014
@@ -171,15 +171,18 @@ static int RivetHandler(request_rec *r)
Tcl_Preserve(module_globals.interp_a[interp_id]);
/*
+ script = Tcl_NewStringObj("puts \"<html><head><title>experimental</title></head><body>OK</body></html>\"\n",-1);
+ */
+
script = Tcl_NewStringObj("puts \"<html><head><title>experimental module</title></head><body><h2>\"\n",-1);
Tcl_AppendStringsToObj(script,"puts -nonewline \"current interp index: \"\nputs ",NULL);
Tcl_AppendObjToObj(script,Tcl_NewIntObj(interp_id));
Tcl_AppendStringsToObj(script,"\nputs \"</h2></body></html>\"",NULL);
- */
- script = Tcl_NewStringObj("puts \"<html><head><title>experimental</title></head><body>OK</body></html>\"\n",-1);
apr_thread_mutex_lock(module_globals.channel_mutex);
+ Tcl_SetStdChannel (*(module_globals.outchannel), TCL_STDOUT);
+
TclWeb_InitRequest(module_globals.req,interp,r);
module_globals.r = r;
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org