Call selinux_restore_tty() as part of cleanup() so it gets called

from error()/errorx()
This commit is contained in:
Todd C. Miller
2010-06-14 15:09:15 -04:00
parent e1e0ac22b2
commit d27223b4c7
2 changed files with 10 additions and 3 deletions

View File

@@ -121,6 +121,9 @@ cleanup(int gotsignal)
{
if (!tq_empty(&io_plugins))
term_restore(io_fds[SFD_USERTTY], 0);
#ifdef HAVE_SELINUX
selinux_restore_tty();
#endif
}
/*