[PATCH] getty: Wait until all output written to stdout has been transmitted
jacmet at sunsite.dk
Mon Jan 24 06:32:19 UTC 2011
>>>>> "Denys" == Denys Vlasenko <vda.linux at googlemail.com> writes:
>> I agree that we shouldn't make stuff too complicated - E.G. lets not add
>> config options to make the user choose if he wants tcdrain or the amount
>> of time to sleep before tcflush, but E.G. my 4-line alarm() + tcdrain
>> patch doesn't add much complexity (and it's all local), and it solves a
>> real world issue.
Denys> It also breaks -t SEC option.
Ok, missed that. A simple signal(SIGALRM, SIG_DFL); after the alarm(0)
call would fix that.
Bye, Peter Korsgaard
More information about the busybox