Try hard to restore the termios state on exit/reboot.
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 7 Jun 2007 22:58:22 +0000 (22:58 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 7 Jun 2007 22:58:22 +0000 (22:58 +0000)
commitdb74ac99477ec0334c8152fb00ec728fc88c8f1e
tree6a63928deebed81a66b19e22d8558b9c8aeb18d7
parent6ef6faeb19268917889c5a06b0fa523ae6d67ccd
Try hard to restore the termios state on exit/reboot.

tcsetattr() can be interrupted by spurious SIGIO from the kqueue, so
try setting the state until it succeeds.  Add an EVENTHANDLER so that
the tty state will be restored for a possible kernel reboot.
sys/platform/vkernel/platform/console.c