Bill Agee wrote:
>> 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


Thanks. I looked for the syntax for that. I saw something like

   IO#sync =  true

That did not seem to work. Has it changed?
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to