Bug #703: string output duplication occurs if the same file descriptor written to in different threads http://redmine.ruby-lang.org/issues/show/703 Author: Roger Pack Status: Open, Priority: Normal ruby-dev:32566 a = Thread.new { p '4'} b = Thread.new { p '3' } a.join b.join results in "4" "3" "4" "3" because the buffer is modified simultaneously by two threads within io_fflush [I think]. ---------------------------------------- http://redmine.ruby-lang.org