From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4876 invoked by alias); 16 Nov 2015 19:29:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4866 invoked by uid 89); 16 Nov 2015 19:29:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail1.bemta7.messagelabs.com Received: from mail1.bemta7.messagelabs.com (HELO mail1.bemta7.messagelabs.com) (216.82.254.101) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 16 Nov 2015 19:29:13 +0000 Received: from [216.82.253.67] by server-5.bemta-7.messagelabs.com id B4/72-03184-78E2A465; Mon, 16 Nov 2015 19:29:11 +0000 X-Env-Sender: becao@progress.com X-Msg-Ref: server-4.tower-158.messagelabs.com!1447702150!5630638!1 X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4387 invoked from network); 16 Nov 2015 19:29:11 -0000 Received: from lxmasmtp01.progress.com (HELO lxmasmtp01.progress.com) (131.239.30.141) by server-4.tower-158.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 16 Nov 2015 19:29:11 -0000 Received: from NTMAEXFE01.bedford.progress.com ([10.128.13.66]) by lxmasmtp01.progress.com (8.14.4/8.14.4) with ESMTP id tAGJT5Tw004855 for ; Mon, 16 Nov 2015 14:29:10 -0500 Received: from NTMAEXBE03.bedford.progress.com (10.128.13.74) by ntmaexbe02.bedford.progress.com (10.128.13.73) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Mon, 16 Nov 2015 14:29:04 -0500 Received: from NTMAEXBE03.bedford.progress.com ([fe80::8874:467d:37b8:57c9]) by ntmaexbe03.bedford.progress.com ([fe80::8874:467d:37b8:57c9%23]) with mapi id 15.00.1130.005; Mon, 16 Nov 2015 14:29:04 -0500 From: Benjamin Cao To: "cygwin@cygwin.com" Subject: RE: CTRL-C not working in sh login mode? Date: Mon, 16 Nov 2015 19:29:00 -0000 Message-ID: <393ce3c74d914e0e9d1ace4262830a10@ntmaexbe03.bedford.progress.com> x-ms-exchange-transport-fromentityheader: Hosted x-ems-proccessed: +CmIlJ+kdV7Z341JADFd9w== x-ems-stamp: cyXPmh/mzNnQoWP/5zfLFg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00226.txt.bz2 -----Original Message----- From: Benjamin Cao=20 Sent: Friday, November 13, 2015 3:46 PM To: 'cygwin@cygwin.com' Subject: CTRL-C not working in sh login mode? Hi, We invoke a shell using a *.bat file doing sh --login. We have discovered that when wanting to kill a long running process with CT= RL-C, it does not work. Is this expected behavior? I've found that to be the same even if I am doing bash --login -i in my *.b= at file. Any guidance would be greatly appreciated. Hi, Just wanted to provide some additional information to make things a bit cle= arer. Running either "sh -login" or "bash --login -I" from a *.bat file will caus= e some commands to not be broken with CTRL-C. For example, this test loop cannot be broken with CTRL-C when I start Cygwi= n up from the *.bat file. echo foo | perl -e 'while(1) {sleep 60;}' Or if I do "cat | more", CTRL-C does not work in that case. Again, is that expected behavior? Thanks, Ben Cao -- 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