aboutsummaryrefslogtreecommitdiffstats
path: root/common/ttyio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-05-26 09:29:33 +0000
committerWerner Koch <[email protected]>2009-05-26 09:29:33 +0000
commitc4282847885627a2ebd8cca5e4717eb39eb83bf0 (patch)
tree2d2f82e651e97e4cb8e5295d76716bb30b453837 /common/ttyio.c
parentFix a signal cleanup problem. (diff)
downloadgnupg-c4282847885627a2ebd8cca5e4717eb39eb83bf0.tar.gz
gnupg-c4282847885627a2ebd8cca5e4717eb39eb83bf0.zip
signal cleanup fix
Diffstat (limited to '')
-rw-r--r--common/ttyio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/ttyio.c b/common/ttyio.c
index 84b81820c..9882c8e30 100644
--- a/common/ttyio.c
+++ b/common/ttyio.c
@@ -674,6 +674,14 @@ tty_disable_completion (void)
void
+tty_cleanup_after_signal (void)
+{
+#ifdef HAVE_TCGETATTR
+ cleanup ();
+#endif
+}
+
+void
tty_cleanup_rl_after_signal (void)
{
if (my_rl_cleanup_after_signal)