This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH v5 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Sat, 14 Sep 2019 13:10:51 +0000
- Subject: Re: [PATCH v5 0/1] Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I108q9tyoY0ZpiEHPIZR2fwvqGstS4SFRNpmnfHSABc=; b=WxkrYfVAas3tcAXLRtMSPDkUb8Nv1V5/nlYFskJrvUPgOnqWnQRppDHcuZhgdKvKkQwOJ4oqrOqI5OPCybwORdCIgiodZi8qVInbHPCuE/pmy7Yo+C8kERmE0mqdMh04s5lZhY1txRB6XwnRDIq0Ykhv34q2TNddF41Agi576HYCwuJ409Cd+6mJHQt4/XtIMl4hLWcctOuajh5QDSmIboj7mfu9GUU1XleUYHxD8EgKFpHPRtVor5nzR6H29t3ph0ly6vZbLVkFfN3jjoIh+UeHLm9e4CNU97p2pZzzswLQKmV42S2CPC4IMqRodkkfdjoG0PzuJ/1aXBf0w+kFWQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Famh0WpxToZc9Y8XD+mu03wOC9Vr+oy5QIvJc9S/mLHG/+pEGwmowMRLnslq929wwKHJteTaBI757y0p1v1AZD2yTm7+QrJeiy1V7/ifygWClYJ44zjD4onEWN2a2sJUUpC91nSSnO/YGTisTZp//mC+Nrb3duX5wLJmH2FAQJ2BAhqBFGEXpFKzWgiWR0LmZjBWbFFa9E2Kok2VnvTZgS20GtHb/IJjq76rFZMHmBqRjKrtHGtJuaw8yRrHRcQ+k3ieV3to3esBdZNHLT/XojlWR5cnGL9/KfpsiuCjT4QyCAtxreHhw+d0uURWXABO5py/ynFaU5m65IY++6my1A==
- References: <20190908125835.5184-1-takashi.yano@nifty.ne.jp>
On 9/8/2019 8:58 AM, Takashi Yano wrote:
> - When the I/O pipe is switched to the pseudo console side, the
> behaviour of Ctrl-C was unstable. This rarely happens, however,
> for example, shell sometimes crashes by Ctrl-C in that situation.
> Furthermore, Ctrl-C was ignored if output of non-cygwin program
> is redirected to pipe. This patch fixes these issues.
>
> v5:
> Add a workaround for piped non-cygwin program.
>
> v4:
> Fix the problem 1 and 2 reported in
> https://cygwin.com/ml/cygwin-patches/2019-q3/msg00175.html
>
> v3:
> Fix mistake in v2.
>
> v2:
> Remove the code which accidentally clears ENABLE_ECHO_INPUT flag.
>
>
> Takashi Yano (1):
> Cygwin: pty: Fix the behaviour of Ctrl-C in the pseudo console mode.
>
> winsup/cygwin/fhandler.h | 4 ----
> winsup/cygwin/fhandler_tty.cc | 44 +++++++++++++++++++++++++----------
> winsup/cygwin/select.cc | 2 +-
> winsup/cygwin/spawn.cc | 42 ++++++++++++++-------------------
> 4 files changed, 50 insertions(+), 42 deletions(-)
Pushed. Thanks.
Ken