X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4C97A217.5060708@cygwin.com>
Date: Mon, 20 Sep 2010 14:04:07 -0400
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: ssh from linux to cygwin + CUI + Ctrl-C
References: <AANLkTi=CvtJmarzhczDOu5k=pE2MsUe=YBiLNH=og0z0@mail.gmail.com> <4C8FB7B6.1030300@gmail.com> <AANLkTinDHQfi=S0_cS4YKOg=i1BZa61ydLUD1XRBXdcK@mail.gmail.com> <4C90E6C4.9050503@gmail.com>	<20100915153611.GC2124@ednor.casa.cgf.cx> <AANLkTi=zuWY8K9dZ0snMOLwdbvqBuyH9CejSUic3kdeV@mail.gmail.com>
In-Reply-To: <AANLkTi=zuWY8K9dZ0snMOLwdbvqBuyH9CejSUic3kdeV@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
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

On 9/20/2010 6:22 AM, Ilia K. wrote:
> It looks like my reply got lost in mailer's spam filters, reposting.
>
> On Wed, Sep 15, 2010 at 5:36 PM, Christopher Faylor wrote:
> ...
>> Cygwin summarily halts a pure-Windows process on receiving a CTRL-C.
>> There is no way around that other than to relink the program to use
>> Cygwin.
>
> Do you state that there is absolutely no way to make it work as I need?
> This would be very pity...
>
> Do you know what's the difference between running bash from sshd and
> from the desktop? In the later case, Ctrl-C works as expected! To me
> it looks like cygwin knows how to pass Ctrl-C to native apps, but sshd
> somehow interferes with it.

See <http://cygwin.com/cygwin-ug-net/using-cygwinenv.html> and look for the
'tty' setting.  If you set 'tty' before starting 'bash', you'll see the same
issue even using a plain console (cmd.exe). I'm assuming that's
what you mean when you say "from the desktop" above.  Actual terminals,
rxvt, mintty, etc., will have the same behavior you saw with 'sshd'.
Currently, there is no way to support ptys and make Windows understand them
as something other than a pipe.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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

