* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
state of the Ctrl-C handler depending on the setting of ENABLE_PROCESSED_INPUT.
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2012-03-02  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
|  | 	* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the | ||||||
|  | 	state of the Ctrl-C handler depending on the setting of | ||||||
|  | 	ENABLE_PROCESSED_INPUT. | ||||||
|  |  | ||||||
| 2012-02-28  Eric Blake  <eblake@redhat.com> | 2012-02-28  Eric Blake  <eblake@redhat.com> | ||||||
|  |  | ||||||
| 	* include/sys/termios.h (tcgetsid): Fix return type. | 	* include/sys/termios.h (tcgetsid): Fix return type. | ||||||
|   | |||||||
| @@ -1009,6 +1009,9 @@ fhandler_console::input_tcsetattr (int, struct termios const *t) | |||||||
|       res = SetConsoleMode (get_io_handle (), flags) ? 0 : -1; |       res = SetConsoleMode (get_io_handle (), flags) ? 0 : -1; | ||||||
|       if (res < 0) |       if (res < 0) | ||||||
| 	__seterrno (); | 	__seterrno (); | ||||||
|  |       else | ||||||
|  | 	/* Set state of ctrl_c handler depending on ENABLE_PROCESSED_INPUT. */ | ||||||
|  | 	init_console_handler (flags & ENABLE_PROCESSED_INPUT); | ||||||
|       syscall_printf ("%d = tcsetattr(,%x) enable flags %p, c_lflag %p iflag %p", |       syscall_printf ("%d = tcsetattr(,%x) enable flags %p, c_lflag %p iflag %p", | ||||||
| 		      res, t, flags, t->c_lflag, t->c_iflag); | 		      res, t, flags, t->c_lflag, t->c_iflag); | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user