Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 20 Sep 2003 12:09:20 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: ^C not getting to sub, sub, sub, sub processes Message-ID: <20030920160920.GC24929@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20030908211837 DOT GA9461 AT redhat DOT com> <20030909011329 DOT GB6708 AT redhat DOT com> <20030920011221 DOT GA548 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Fri, Sep 19, 2003 at 11:23:49PM -0400, Rolf Campbell wrote: >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. Yeah, I'll bet it worked perfectly on B20, too. cgf -- 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/