diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-06 09:59:25 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-06 09:59:25 +0000 |
commit | 3d89b4a8a862bae2e33beb3233d64a3eee461822 (patch) | |
tree | c3b3efc849c51b2320c60a718e039c8ff15caa34 /lib/shell | |
parent | 5f7bda0735e29f6facc677d45dc1bafc73f988e6 (diff) |
* lib/shell/process-controller.rb: fix thread synchronization
problem for [ruby-dev:30477].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell')
-rw-r--r-- | lib/shell/process-controller.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb index f74abfd686..8929805506 100644 --- a/lib/shell/process-controller.rb +++ b/lib/shell/process-controller.rb @@ -246,9 +246,11 @@ class Shell redo end Thread.exclusive do - terminate_job(command) - @job_condition.signal - command.notify "job(%id) finish.", @shell.debug? + @job_monitor.synchronize do + terminate_job(command) + @job_condition.signal + command.notify "job(%id) finish.", @shell.debug? + end end end } |