2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-01 06:45:10 +00:00

Re-enable cleanup functions in sudoers plugin and sudo driver

for error()/errorx().
This commit is contained in:
Todd C. Miller
2010-05-28 12:15:14 -04:00
parent 34e1a06767
commit d2d68aa24d
3 changed files with 10 additions and 29 deletions

View File

@@ -149,6 +149,16 @@ pty_setup(uid_t uid)
}
}
/*
* Cleanup hook for error()/errorx()
*/
void
cleanup(int gotsignal)
{
if (!tq_empty(&io_plugins))
term_restore(io_fds[SFD_USERTTY], 0);
}
/* Call I/O plugin tty input log method. */
static int
log_ttyin(char *buf, unsigned int n)