mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/ext/multi-irb.rb: fix multi-irb running
parallelly. [ruby-dev:41031] [Bug #3182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9971304196
commit
14e5c442c5
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 22 21:50:17 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||
|
||||
* lib/irb/ext/multi-irb.rb: fix multi-irb running
|
||||
parallelly. [ruby-dev:41031] [Bug #3182]
|
||||
|
||||
Thu Apr 22 17:13:34 2010 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rubygems: Import RubyGems 1.3.7.pre.1 (as 1.3.6.1).
|
||||
|
|
|
@ -172,6 +172,7 @@ module IRB
|
|||
ensure
|
||||
unless system_exit
|
||||
@JobManager.delete(irb)
|
||||
if @JobManager.current_job == irb
|
||||
if parent_thread.alive?
|
||||
@JobManager.current_job = @JobManager.irb(parent_thread)
|
||||
parent_thread.run
|
||||
|
@ -182,6 +183,7 @@ module IRB
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Thread.stop
|
||||
@JobManager.current_job = @JobManager.irb(Thread.current)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue