[svn] GnuPG - r5023 - trunk/common

svn author wk cvs at cvs.gnupg.org
Tue May 26 11:29:33 CEST 2009


Author: wk
Date: 2009-05-26 11:29:33 +0200 (Tue, 26 May 2009)
New Revision: 5023

Modified:
   trunk/common/ChangeLog
   trunk/common/ttyio.c
   trunk/common/ttyio.h
Log:
signal cleanup fix


Modified: trunk/common/ChangeLog
===================================================================
--- trunk/common/ChangeLog	2009-05-26 09:29:02 UTC (rev 5022)
+++ trunk/common/ChangeLog	2009-05-26 09:29:33 UTC (rev 5023)
@@ -1,3 +1,7 @@
+2009-05-22  Werner Koch  <wk at g10code.com>
+
+	* ttyio.c (tty_cleanup_after_signal): New.
+
 2009-05-19  Werner Koch  <wk at g10code.com>
 
 	* simple-pwquery.c (agent_open): Use SUN_LEN

Modified: trunk/common/ttyio.c
===================================================================
--- trunk/common/ttyio.c	2009-05-26 09:29:02 UTC (rev 5022)
+++ trunk/common/ttyio.c	2009-05-26 09:29:33 UTC (rev 5023)
@@ -674,6 +674,14 @@
 
 
 void
+tty_cleanup_after_signal (void)
+{
+#ifdef HAVE_TCGETATTR
+  cleanup ();
+#endif
+}
+
+void
 tty_cleanup_rl_after_signal (void)
 {
   if (my_rl_cleanup_after_signal)

Modified: trunk/common/ttyio.h
===================================================================
--- trunk/common/ttyio.h	2009-05-26 09:29:02 UTC (rev 5022)
+++ trunk/common/ttyio.h	2009-05-26 09:29:33 UTC (rev 5023)
@@ -47,6 +47,7 @@
 
 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);
 
 




More information about the Gnupg-commits mailing list