X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:reply-to:to:message-id
	:subject:mime-version:content-type:content-transfer-encoding
	:references; q=dns; s=default; b=loPQrqYHMHMn+H2Y4beeDB0psRZsGow
	VTFve4yhPVeqsZgA2FJ7VxbYoDdnEjfllNSEfakiUeK1rATMHNt0TKMAWSUCkXZk
	vtfWM2U62jPGkn3QCPkm0j0E743ysp/QamtHY4DuVxvmCbp8crn+4lU5jX6vLuBV
	uLHKUKF5cxgw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:reply-to:to:message-id
	:subject:mime-version:content-type:content-transfer-encoding
	:references; s=default; bh=k6eXyB7/Uq0XbN+KJwaA3GwM9L0=; b=slJA1
	LINdTHU2CH3jmb1xe3lyfWlnXRQ4gJoYxUfDwGTDCFcrFZpgOrtx+AmLcnAV39zZ
	3WqzezJQD6GbbCaI5kIyY4IRysiPS7qWLI5o36gf2LjS5LS62K93WRwGhw5uCC79
	KZbGl534fCw87xWQVuUqJ6N7ktl+ihzK9ZQ+qU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=yahoocom, yahoo.com, H*M:yahoo, H*x:WebService
X-HELO: sonic304-25.consmr.mail.gq1.yahoo.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1582060725; bh=aUNfYMGoV3vQYXTU41iR8nTDz9VMpDi8RcoKGjGtTbw=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=NUkW00HYKsJCFarmRAveeRleW11CMyHn86DOgoGORYnad8DRdYSQQKJXcHSc0XLzOfOCk3ZUIcdu4yv36imgs9fQs7UJBv8uAxQphJuVwD4p1s46tZOKfCBl4dKVmdAb1Y+VjpWo5LpEfB6i1GhdJoD58LkHvf19P9NdJrwApFS1Bz55tnJ9gbrQfzb0tsD+808V2hQKT+6pfo30jpzSWfea/+PuimDfaeExsNswPJnDrKCqpyjLAvH8PevSa81Xm7KvZ7h6gsbW56egWrnZmdFaW1qL7hI1/yfgavw76qQL1QvxcWgGXCXvgAgVvsyRBqHP4Hy8EJtM/HvD1BFyBA==
Date: Tue, 18 Feb 2020 21:16:45 +0000 (UTC)
From: "Kevin Schnitzius via cygwin" <cygwin@cygwin.com>
Reply-To: Kevin Schnitzius <kometes@yahoo.com>
Reply-To: Kevin Schnitzius <kometes@yahoo.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Message-ID: <937489593.4978154.1582060605719@mail.yahoo.com>
Subject: cygwin 3.1 pseudo console in PTY and break/ctrl-c handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
References: <937489593.4978154.1582060605719.ref@mail.yahoo.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 01ILJNBC005124

With Cygwin version 3.0.7-1, crtl-c kills native apps that are started from the shell,  For example, starting notepad in the foreground from bash would be kill by a ctrl-c.

With Cygwin version 3.1.2-1, crtl-c DOES NOT kill native apps that are started from the shell, 

Can I restore this behavior?

With 3.1.2-1:

mintty -o "CA+F12:break"                              =====>    ctrl-alt-F12 causes a break and kills notepad
mintty -o "c:break"                                          =====>    ctrl-shift-c causes a break and kills notepad
mintty -o "C+c:break"                                     =====>  FAIL -- ctrl-c kills native apps but notepad is not affected
mintty -o "CA+c:break"                                   =====>  FAIL -- ctrl-alt-c kills native apps but notepad is not affected

These tests show that the 'break' signal can be propagated from mintty but is not for the ctrl-c case.  

I am guessing that this behavior is from the pty handing but I have not dug into this code or installed winpty.

Is all this documented somewhere that I could not find?  

Kevin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


