summaryrefslogtreecommitdiff
path: root/sample/tsvr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/tsvr.rb')
-rw-r--r--sample/tsvr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/tsvr.rb b/sample/tsvr.rb
index fbc6545..d6a5620 100644
--- a/sample/tsvr.rb
+++ b/sample/tsvr.rb
@@ -13,7 +13,7 @@ while TRUE
ns = gs.accept
print(ns, " is accepted\n")
Thread.start do
- s = ns # save to dynamic variable
+ s = ns # save to thread-local variable
while s.gets
s.write($_)
end