зеркало из https://github.com/github/ruby.git
* lib/shell/process-controller.rb: fix thread synchronization problem for [ruby-dev:30477].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4cd2a9864c
Коммит
835f040be2
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Mar 6 16:35:04 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/shell/process-controller.rb: fix thread synchronization problem for [ruby-dev:30477].
|
||||||
|
|
||||||
Tue Mar 6 11:53:25 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Tue Mar 6 11:53:25 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/sample/irbtkw.rbw: fails to exit process.
|
* ext/tk/sample/irbtkw.rbw: fails to exit process.
|
||||||
|
|
|
@ -246,11 +246,13 @@ class Shell
|
||||||
redo
|
redo
|
||||||
end
|
end
|
||||||
Thread.exclusive do
|
Thread.exclusive do
|
||||||
|
@job_monitor.synchronize do
|
||||||
terminate_job(command)
|
terminate_job(command)
|
||||||
@job_condition.signal
|
@job_condition.signal
|
||||||
command.notify "job(%id) finish.", @shell.debug?
|
command.notify "job(%id) finish.", @shell.debug?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
}
|
}
|
||||||
return pid, pipe_me_in, pipe_me_out
|
return pid, pipe_me_in, pipe_me_out
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче