- With pseudo console enabled, if the non-cygwin app is started in
the background and put it into the foreground, the process cannot
be stopped by Ctrl-C. This patch fixes the issue.
&mbp);
}
- if ((ti.c_lflag & ISIG) && !(ti.c_lflag & NOFLSH)
- && memchr (buf, '\003', nlen))
- get_ttyp ()->discard_input = true;
+ if ((ti.c_lflag & ISIG) && memchr (buf, '\003', nlen))
+ {
+ get_ttyp ()->kill_pgrp (SIGINT);
+ if (!(ti.c_lflag & NOFLSH))
+ get_ttyp ()->discard_input = true;
+ }
DWORD n;
WriteFile (to_slave_nat, buf, nlen, &n, NULL);
ReleaseMutex (input_mutex);