> I think I understand what is happening now. It is buffering. I did not > notice, since I let the program ran for long time in a loop and > interrupted it later (with Control-C). > > After some googling I inserted > > STDOUT.flush > > and this cured the problem.
Ah, good call. Another way to cure it might be to disable buffering for $stdout completely, with: $stdout.sync = true _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general