diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/shell/process-controller.rb | 8 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Tue Mar 6 18:58:37 2007 Keiju Ishitsuka <keiju@ruby-lang.org> + + * lib/shell/process-controller.rb: fix thread synchronization + problem for [ruby-dev:30477]. + Tue Mar 6 18:44:26 2007 Akinori MUSHA <knu@iDaemons.org> * ext/digest/lib/md5.rb (MD5::new, MD5::md5): Catch up with 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 } |
