1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
knu 2007-03-06 09:59:25 +00:00
parent 5f7bda0735
commit 3d89b4a8a8
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -246,11 +246,13 @@ class Shell
redo
end
Thread.exclusive do
@job_monitor.synchronize do
terminate_job(command)
@job_condition.signal
command.notify "job(%id) finish.", @shell.debug?
end
end
end
}
return pid, pipe_me_in, pipe_me_out
end