1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-17 00:39:50 +02:00

Fixed bug1058.

This commit is contained in:
Werner Koch 2009-05-22 15:38:49 +00:00
parent d72349bde0
commit 0bbe6eda34
5 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-05-22 Werner Koch <wk@g10code.com>
* signal.c (got_fatal_signal): Call tty_cleanup_after_signal.
2009-05-20 Werner Koch <wk@g10code.com>
* gpg.c (main): Fix --fingerprint/--with-fingerprint command

View File

@ -88,6 +88,7 @@ got_fatal_signal( int sig )
rl_free_line_state ();
rl_cleanup_after_signal ();
#endif
tty_cleanup_after_signal ();
/* Better don't translate these messages. */
write(2, "\n", 1 );

View File

@ -53,5 +53,6 @@ void tty_disable_completion(void);
#define tty_enable_completion(x)
#define tty_disable_completion()
#endif
void tty_cleanup_after_signal (void);
#endif /*G10_TTYIO_H*/

View File

@ -1,3 +1,7 @@
2009-05-22 Werner Koch <wk@g10code.com>
* ttyio.c (tty_cleanup_after_signal): New.
2009-05-05 Werner Koch <wk@g10code.com>
* dotlock.c: Merged changes from GnuPG-2. Better detection of

View File

@ -122,6 +122,14 @@ cleanup(void)
}
#endif
void
tty_cleanup_after_signal (void)
{
#ifdef HAVE_TCGETATTR
cleanup ();
#endif
}
static void
init_ttyfp(void)
{