commit | 1ee2175426700988f540d2ed7064afc16bab67cb | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@zytor.com> | Tue Jun 06 16:41:59 2006 -0700 |
committer | H. Peter Anvin <hpa@zytor.com> | Tue Jun 06 16:41:59 2006 -0700 |
tree | e9811aca8b423e3f7b57f87386227270ed7fcc3c | |
parent | eda4d0f33a2f9f827e897553a0ba2f6e36454c32 [diff] |
[klibc] kinit: before exiting, tcdrain() any output If kinit returns, the kernel will usually panic. Often the serial port driver will not flush data out the port before it does so. Do tcdrain() on file descriptors 2 and 1 before exiting, so the user has a better chance of seeing the error. After a bug report from Bjorn Helgaas <bjorn.helgaas@hp.com>. Signed-off-by: H. Peter Anvin <hpa@zytor.com>