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:message-id:in-reply-to:references:date:subject
	:from:to:mime-version:content-type:content-transfer-encoding; q=
	dns; s=default; b=B8T9NKme489TqgkQQSnh/SfxZqS+L3eIVRRL5u/gSXVq9F
	Wt0GLi0alaGtm3tkF/50AsOu4q6bdDmNX4CsDqg6b7rB4kX/0eYJ5/eItCxnyQwV
	l7NnDrXqj+uQNVOu1GGeC/LrYXOFhpKGC8gasY2DF9gXRtoNAuEkbzdxlMu/0=
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:message-id:in-reply-to:references:date:subject
	:from:to:mime-version:content-type:content-transfer-encoding; s=
	default; bh=Drxc60Yu+tcgrEeCdBl5ALF+JEA=; b=UeVRoUsW6JqJvSy6zEi1
	ZwXxRvW26hpp5aBj/8c1g+UJrvDkQDSxcQi7DZlFxFMb6NaERv+lAyvh6ZDQad7a
	L/xBuXc+85Zzmioi4L1N8jgp+lWIZFFNX1ex7rWW/lm7iWK67mWv0Yr8bPK78gPA
	VnGeBWSto5Ae+qPVM3ZsAls=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: lb3-smtp-cloud2.xs4all.net
Message-ID: <79ac7f5abad2d03fbd8b442b38bcbd56.squirrel@oude-webmail.xs4all.nl>
In-Reply-To: <1437396634.2825938.328138033.1915DBE0@webmail.messagingengine.com>
References:    <1436859879.3576693.323109769.13A8B37B@webmail.messagingengine.com>    <55A9517A.5090308@towo.net>    <1437389942.2804270.328057057.1FF478B2@webmail.messagingengine.com>    <6e51c4c1411fb3878b6d7862d96ef4af.squirrel@oude-webmail.xs4all.nl>    <1437396634.2825938.328138033.1915DBE0@webmail.messagingengine.com>
Date: Mon, 20 Jul 2015 15:40:24 +0200
Subject: Re: SIGINT generated by Control-C, is not delivered in mintty
From: "Houder" <houder@xs4all.nl>
To: cygwin@cygwin.com, "Ronald Fischer" <ynnor@mm.st>
User-Agent: SquirrelMail/1.4.22
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

>> > Indeed, it does! When starting it from a desktop shortcut, it works, but
>> > when started as a background process, it doesn't.
>>
>> Ah, so that is the "Cygwin console" # i.e. execution of the file
>> Cygwin.bat, located in the "Windows Cygwin root".
>
> Actually no, though the difference doesn't matter - but for the safe
> side, here are the gory details:
>
> In a cmd.exe Command window (or, to be more precise, in a command window
> hosted by the Console2 console), I use the command
>
>      cmd /c c:\cygwin64\bin\zsh -l
>
> to start an interactive zsh Shell, and from *this*, I start a Ruby
> program, and from *this*, a mintty is started in the background.
>
> But I can see the effect simpler in this way: Just open a DOS Command
> Window, and in the command line type
>
>     c:\cygwin64\bin\zsh -c /usr/bin/mintty
>
> and the error can be reproduced. BTW, same effect with bash instead of
> zsh.

Understood.

For the moment, invoke mintty through cmd, i.e. put cmd between Ruby and
mintty. That should help.

The trick is to make mintty NOT interact with a cons.

Henri


--
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

