[PATCH] getty: Wait until all output written to stdout has been transmitted
jacmet at sunsite.dk
Sun Jan 23 19:44:03 UTC 2011
>>>>> "Rich" == Rich Felker <dalias at aerifal.cx> writes:
Rich> Is there a reason you're not considering the alarm approach?
Rich> alarm+drain will not hang at all if the buffer drains immediately.
Rich> sleep+flush or usleep+flush will *always* sleep at least some
Rich> interval, which is annoying to the user.
Indeed. It seems vastly superior, and only slightly more complicated.
Bye, Peter Korsgaard
More information about the busybox