cat MyFile > /dev/ttyS1 hangs second time it is launched

DI BACCO ANTONIO - technolabs Antonio.DiBacco at technolabs.it
Tue Jun 12 05:00:43 EST 2007


I tried to execute the command in the subject.
First time I launch it, it is successfull.
Second time it hangs when closing /dev/ttyS1, third time and subsequent times it clocks on opening /dev/ttyS1.
The same happen on /dev/ttyS0.
Is it necessary to save termios and restore them before closing the serial port?

Why?

Bye,
Antonio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070611/aff7c3c9/attachment.htm 


More information about the Linuxppc-embedded mailing list