signal cleanup fix

This commit is contained in:
Werner Koch 2009-05-26 09:29:33 +00:00
parent 21ad035cc9
commit c428284788
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-05-22 Werner Koch <wk@g10code.com>
* ttyio.c (tty_cleanup_after_signal): New.
2009-05-19 Werner Koch <wk@g10code.com>
* simple-pwquery.c (agent_open): Use SUN_LEN

View File

@ -673,6 +673,14 @@ tty_disable_completion (void)
}
void
tty_cleanup_after_signal (void)
{
#ifdef HAVE_TCGETATTR
cleanup ();
#endif
}
void
tty_cleanup_rl_after_signal (void)
{

View File

@ -47,6 +47,7 @@ int tty_no_terminal (int onoff);
void tty_enable_completion (rl_completion_func_t *completer);
void tty_disable_completion (void);
void tty_cleanup_after_signal (void);
void tty_cleanup_rl_after_signal (void);