Closed postmodern closed 9 years ago
I added bit code to migrate global_variables. But still not work. Because symbol value in another threads doesn't match as main thread's one. So you need to patch for mruby-io.
diff --git a/mrblib/io.rb b/mrblib/io.rb
index ca687ae..72fc019 100644
--- a/mrblib/io.rb
+++ b/mrblib/io.rb
@@ -146,10 +146,10 @@ class IO
end
def readline(arg = $/, limit = nil)
- case arg
- when String
+ case arg.class.to_s
+ when "String"
rs = arg
- when Fixnum
+ when "Fixnum"
rs = $/
limit = arg
else
Ah, sorry. It's possible & done.
Ooops, it's not fixed.
Should be fixed in e139cfed05bbcbd5a37ff46c9994933cdd926e3e
I noticed that any reading of input within a thread will kill it.
Reproduction
MRI 1.8.7 and 1.9.3
mruby 1.0.0