зеркало из https://github.com/github/ruby.git
* 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:
Родитель
9971304196
Коммит
14e5c442c5
|
@ -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,12 +172,14 @@ module IRB
|
|||
ensure
|
||||
unless system_exit
|
||||
@JobManager.delete(irb)
|
||||
if parent_thread.alive?
|
||||
@JobManager.current_job = @JobManager.irb(parent_thread)
|
||||
parent_thread.run
|
||||
else
|
||||
@JobManager.current_job = @JobManager.main_irb
|
||||
@JobManager.main_thread.run
|
||||
if @JobManager.current_job == irb
|
||||
if parent_thread.alive?
|
||||
@JobManager.current_job = @JobManager.irb(parent_thread)
|
||||
parent_thread.run
|
||||
else
|
||||
@JobManager.current_job = @JobManager.main_irb
|
||||
@JobManager.main_thread.run
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче