Check-in [2a85db2588]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Need to also set baseEnvironment for threads
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:2a85db25882b4a56e973f0a23f42d96fb33c9272
User & Date: rkeene 2018-04-28 04:04:01
Context
2018-04-28
04:04
Need to also set baseEnvironment for threads Leaf check-in: 2a85db2588 user: rkeene tags: trunk
04:03
More fix ups for logging from threads check-in: ee6bad0d84 user: rkeene tags: trunk
Changes

Changes to rivet-starkit/main.tcl.

1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137

				# Copy the appropriate namespaces to the new thread
				foreach ns [list ::rivetstarkit] {
					thread::send $threadId [list namespace eval $ns ""]
				}

				# Copy the appropriate variables to the new thread
				foreach var [list ::starkit::topdir ::rivet_cgi_tls_verified($sock) ::rivetstarkit::process_model] {
					if {[namespace qualifiers $var] != ""} {
						thread::send $threadId [list namespace eval [namespace qualifiers $var] ""]
					}

					if {[info exists $var]} {
						thread::send $threadId [list set $var [set $var]]
					} else {







|







1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137

				# Copy the appropriate namespaces to the new thread
				foreach ns [list ::rivetstarkit] {
					thread::send $threadId [list namespace eval $ns ""]
				}

				# Copy the appropriate variables to the new thread
				foreach var [list ::starkit::topdir ::rivet_cgi_tls_verified($sock) ::rivetstarkit::process_model ::baseEnvironment] {
					if {[namespace qualifiers $var] != ""} {
						thread::send $threadId [list namespace eval [namespace qualifiers $var] ""]
					}

					if {[info exists $var]} {
						thread::send $threadId [list set $var [set $var]]
					} else {