vino r1001 - in trunk: . tools



Author: jwendell
Date: Wed Oct 22 17:30:36 2008
New Revision: 1001
URL: http://svn.gnome.org/viewvc/vino?rev=1001&view=rev

Log:
2008-10-22  Jorge Pereira  <jorge jorgepereira com br>
	* tools/vino-passwd.c: (vino_passwd_read):
	Do not show "Core Dumped" when receive "Ctrl+C". 
	Closes #557454.


Modified:
   trunk/ChangeLog
   trunk/tools/vino-passwd.c

Modified: trunk/tools/vino-passwd.c
==============================================================================
--- trunk/tools/vino-passwd.c	(original)
+++ trunk/tools/vino-passwd.c	Wed Oct 22 17:30:36 2008
@@ -108,7 +108,13 @@
       read (STDIN_FILENO, &key, 1);
 
       if (key == 0x03) /* Ctrl + C */
-          kill (0, SIGQUIT);
+        {
+          tcsetattr (STDIN_FILENO, TCSAFLUSH, &told); 
+          g_printerr ("\n");
+          g_printerr (_("Cancelled"));
+          g_printerr ("\n");
+          exit (1);
+        }
       else if (again && key == '\n')
         {
           g_printerr ("\n");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]