>>>>> "Denys" == Denys Vlasenko <[email protected]> writes:

Hi,

 Denys> On Thursday 20 January 2011 09:54, Michal Simek wrote:
 >> Problem was observed on a Xilinx Microblaze system with console on mdm
 >> IP (which is very slow), where part of the console output wasn't shown.
 >> 
 >> Calling tcdrain() instead of tcflush() fixes the problem.

 Denys> But it may lead to a hang if serial line gets mangled:
 Denys> in some situations tcdrain may wait forever.

With flow control, you mean?

Why is the tcflush/tcdrain needed in the first place?

 Denys> I propose adding sleep(1) before the flush.
 Denys> Can you verify that it works?

I don't have the hw, Michal?

-- 
Bye, Peter Korsgaard
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to