delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/03/14/13:18:46

X-Recipient: archive-cygwin AT delorie DOT 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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=CSi
vrSZAf91PK2eGDfuLgMFSS2yZ2JPJJ70EzAr0zHB5qEF5kPXoOFFBRtGWvidobtJ
pSZWIoGktBsn8xcLJzyV99aM592g2+jrc9vhrT+WZv8h9NwBM5am4dCmSO1WreW2
hCl1lLvUTLOyliexgrxCfpBGIfZo3j3WQ2D0XRzI=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=teYJKJELX
/h2fbpLurXsDM7hn5M=; b=ySUwqvcCVMB9Jre8MV0DTv+yzjyCZTZ2VwE834kdZ
tkxSMRcHloo9piVk7D8qPwD+WwRQVVkB3PkPzaqBThjJvlNmBoKsFhokc7eHj2iE
wF8R1YLexw/nkKN5/xXtS2BP2rSoXPd2id1+TnqDb51QuEKnSJeQOaDS4ogt6vLD
tE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*r:ip*192.168.0.5, H*MI:gmx, ruby, shutdown
X-HELO: mout.gmx.net
To: cygwin AT cygwin DOT com
From: =?UTF-8?Q?Bj=c3=b6rn_Stabel?= <stabelweb AT gmx DOT de>
Subject: ctrl-c doesn't reliably kill applications
Message-ID: <56E6F25A.7070000@gmx.de>
Date: Mon, 14 Mar 2016 18:18:18 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:IwspnPDF3Rs=:Sg4uO4cIt40f438RF+lgXs wFcXUx8RvMMYHPihljzr54OShrKHukmD4N2mf00xRmVahw8np3sbKJ+StPe2iQEgQLxxjoBDU wXhfVuCQDHhRCEmRhPF7co4qxL88GBW/nNocuHPazYU58q3ACKRJiKXKE+bwXnT+VUaZBrbzr tnhhtHOdTbPz25YnkUIMSR9RL6gl5s7HB53HIzd/DwVh2uPNCVWoxwgK8TupbqoCO2n0l/WJR iA1OxRE3OVaCABFpaK8p76dCQyG0EWhtFDgpSyAdcuNFvgZmL2uH0365hKDyZdtmJgYG5IKaV CHdFxvp6R8sgMexE8nBMOnRGaN6FMa38a+7lGDvo4BR5OC2OvfLRoOg5Yks74ZfZqp/1wMVQq ZmNSYGPfReg6nfFFgtQr9liITHKVyNqM0ovmKW1rPenNg/9uipwPz4e2fDlgiuwjrfMaJp4YW 0XiEQW1/0ch8ootIH6rEutWuyy0sQINanRdA9zNoP0nZjAaVmV4VkVxbva66eFgPScoqAwJl+ ddxoG4Y7FsDX2I7LWYXMfqzUlxZuqDmtwFhYrnWRWFNTij4IWjDmE1SYfhULjKA3xDyrX7QOy PhbRfdcDDRIbhOSCwqDGAlD+hPuPsEs2WG3ZAh47yKBYUFTP3w0FH773izYnB2jq8iTG/8PDI dQNZSk71YERx6vGBIJ+ACxRImJjUKJtlsac3JTR5mQGZUb0vdufNDmo/rW4e0VfDryXCjREvi ZwZiJXCA9pqzrAZx7IRoF2izrmt5/5jWUoEkTq5yFNkDTp689MjR1hLbNVldRG3ACfwlucOwp 7vqV4q8
X-IsSubscribed: yes

The ctrl-c shortcut doesn't reliably kill applications (anymore?).
It has been that way for at least a year now.

------------------------------------------------------------------------

One example is the ruby "rerun" tool (at least when used with a sinatra
app).
The problem can be reproduced using these steps:

 1. Default cygwin install
 2. Install rubygems package
 3. gem install rerun sinatra
 4. Make sure the rerun tool is in PATH (or specify the path to it
    explicitly). I think rubygems installs executables from gems to
    ~/bin by default
 5. rerun "ruby -e 'require(\"sinatra\")'"
 6. ctrl-c
 7. tasklist /fi "IMAGENAME eq ruby.exe"
      * Expected: No process
      * Actual: process is still running

You might have to repeat steps 5 to 7 a few times for the issue to occur.
Another problem is that Q sometimes doesn't exit rerun but only the app
running inside, but that might be a problem with rerun itself or with
the shutdown detection they use.

------------------------------------------------------------------------

Another example is Vagrant.
Although that is not a cygwin application, I usually recommend coworkers
to use it with cygwin, because it benefits from mintty's better console.
The problem there occurs when you invoke a long-running vagrant command
(vagrant provision, for instance) and then cancel it with ctrl-c.
If you do that, you're back at the bash prompt, but the provisioning run
still goes on and spams the console, making it unusable.

------------------------------------------------------------------------

Under Kubuntu Linux 14.04/kde/konsole/bash, neither of these problems exist.
What the two examples seem to have in common is that they're both one
application invoking another:

  * rerun invokes sh -c "$1" (I think)
  * vagrant provision invokes (its bundled?) ssh

I think this is a bug and should be fixed. Is the bug with Cygwin or
should I report it elsewhere?

- Björn Stabel aka. TomyLobo

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019