Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Rolf Campbell <Endlisnis@mailc.net>
Subject: Re: ^C not getting to sub, sub, sub, sub processes
Date: Fri, 19 Sep 2003 23:23:49 -0400
Lines: 28
Message-ID: <bkgh89$48v$1@sea.gmane.org>
References: <bjipol$tvo$1@sea.gmane.org> <20030908211837.GA9461@redhat.com> <bjj99a$b5p$1@sea.gmane.org> <20030909011329.GB6708@redhat.com> <bkfi7u$1e3$1@sea.gmane.org> <20030920011221.GA548@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030723 Thunderbird/0.1
X-Accept-Language: en-us, en
In-Reply-To: <20030920011221.GA548@redhat.com>

Christopher Faylor wrote:
>>I have a reproducable (at least on my machine) of some ^C handling issues.
>>
>>#!/bin/python
>>import sys, os, select
>>
>>if(int(sys.argv[1]) > 0):
>>   os.system(sys.argv[0] + " %d" % (int(sys.argv[1])-1))
>>else:
>>   select.select([], [], [], 10)
>>
>>Try running this as "./deep.py 0", and then, when it's waiting, hit ^C, 
>>it will terminate fine.  Now try it as "./deep.py 1", and then hit ^C. 
>>Nothing happens.  I see this when I try to cancel my build, but ^C 
>>doesn't work when the process tree is too deep.
> 
> 
> Interesting.  This is an *ancient* bug.  I think it even predates my
> involvment in cygwin.  It was a bug in the system() call.  It should be
> fixed in the latest snapshot, available now.
> 
> Thanks for the test case.

No problem, thank you for the quick fix (works great now).  BTW, I have 
some machines that are still running 1.3.17, and I could not reproduce 
this ^C issue on them.  I don't really care, but I thought I would 
mention it.



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

