diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/ttyio.c | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 85d5a49fc..d060fe299 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,7 @@ +2009-05-22 Werner Koch <[email protected]> + + * ttyio.c (tty_cleanup_after_signal): New. + 2009-05-05 Werner Koch <[email protected]> * dotlock.c: Merged changes from GnuPG-2. Better detection of diff --git a/util/ttyio.c b/util/ttyio.c index b60a9196a..2a0c91be2 100644 --- a/util/ttyio.c +++ b/util/ttyio.c @@ -122,6 +122,14 @@ cleanup(void) } #endif +void +tty_cleanup_after_signal (void) +{ +#ifdef HAVE_TCGETATTR + cleanup (); +#endif +} + static void init_ttyfp(void) { |