Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-03-02 14:17:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-03-02 14:17:16 +0400
commitbfeed1643e92e7bc9bba7ddfa00dff0ba18f1cd7 (patch)
treef1a1e5a32c2394b7f8e5672e1865897775b336d2 /winsup/cygwin/fhandler_console.cc
parent521b39b4c76442d05f27da7792b416b6d07ac0b4 (diff)
* fhandler_console.cc (fhandler_console::input_tcsetattr): Set the
state of the Ctrl-C handler depending on the setting of ENABLE_PROCESSED_INPUT.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 01892f69e..f4e8b10e6 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -1009,6 +1009,9 @@ fhandler_console::input_tcsetattr (int, struct termios const *t)
res = SetConsoleMode (get_io_handle (), flags) ? 0 : -1;
if (res < 0)
__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",
res, t, flags, t->c_lflag, t->c_iflag);
}