[PATCH] getty: Wait until all output written to stdout has beentransmitted
Harald Becker
ralda at gmx.de
Mon Jan 24 22:13:38 UTC 2011
Hallo Dennys!
On 24.01.2011 22:42, Denys Vlasenko wrote:
> His last mail says that sleep(1) doesn't help, which I find ... hard
> to believe.
Why?
Jtag interface tty may run with effective speed less than 300 baud (on
some systems). So do a simple calculation:
Buffer size (previous message): 512 Byte (less than 10 lines of 60 chars
each)
Character size: assuming 12 bit (less than that required on jtag)
Line speed: 300 baud (just to take a value)
512 * 12 / 300 = 20.48
That is, it takes more than 20 seconds to transmit the buffer contents
... so that 1 second delay doesn't make much difference.
Just to give an example on why it isn't hard to believe.
--
Harald
More information about the busybox
mailing list