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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=GvlkhK3rgVLfhNM2 FGy7gnbHxYUWXq8TgIgNWdlivHkCG9xWaqOAz4T8XoND3WdUIoDlXkOYDD8ivPfO 7yomFh8xnWuueiIdlNEodeolCyLmdfsTu98l/dOBsrppmWlFAKLC97FlH95G0yYv jWDYfsZ2+y0eEKnxW49Op6ruxQk= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=R8dMtzhw3RXwX7BuLYWUYD fgVTA=; b=G0qe5d4sCCq/GysWyEOxOW8fZEIUX/Ezon4Tc8Ch/sZMulN5CX2W2q OGngQp6QJ2UYNuwCT7XUnxvm0o2qmhqqOcWGRDNoiuI8qYTN9CIFD7gvfia/2vk6 Qj+CtUIXbn7bH7vDPRweSDsuwQ0CwTFGdUIyQpPK4dzf6eyv+0EKE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL,TW_YG autolearn=no version=3.3.1 Date: Sun, 9 Jun 2013 17:04:47 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <467279509.20130609170447@mtu-net.ru> To: Jeremy Hetzler , cygwin AT cygwin DOT com Subject: Re: ctrl-c to windows program causes mintty to hang [1.7.20 / win7] In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Jeremy Hetzler! > All, > Steps: > - Open mintty > - Run a Windows program like c:\windows\system32\ping.exe > - While the Windows program is running, press ctrl-c > Result: > - Windows program exits (disappears from task manager) Check it with ping -t It doesn't exit. > - mintty hangs > mintty's state in ps then appears as O ("waiting to output to a TTY"). > It does not respond to keyboard, mouse, or kill -9. It can be closed > via task manager. > Sending ctrl-c to Cygwin programs does not exhibit this problem. This > behavior is new for me under 1.7.20. I have rebooted since updating > Cygwin to no effect. Cygcheck output attached. > Any ideas? It's more interesting, than that. The events are as follows: 1. Start mintty. It starts bash and present you with a command prompt. []$ ps PID PPID PGID WINPID TTY UID STIME COMMAND 4212 1 4212 4212 cons0 1004 16:58:35 /usr/bin/ps 16116 1 16116 16116 ? 1004 16:58:28 /usr/bin/mintty I 8708 16116 8708 6208 pty0 1004 16:58:28 /usr/bin/bash 2. Execute "/c/WINDOWS/system32/ping.exe -t localhost" It starts YET ANOTHER bash, not visible to ps, even in -W mode, but clearly spotted in task manager. Module: bash.exe Full path: C:\Programs\CygWin\bin\bash.exe PID: 15688 Parent PID: 6208 (bash.exe) Priority: 8 Threads: 2 3. Now, if you Ctrl+C, the console hangs. If you let it sit down and think a bit, the iterrupt will be delivered to ping and it get out of the lockup. Going to grab a snapshot and see if it affect anything. P.S. Standard console doesn't exhibit the lockup. -- WBR, Andrey Repin (anrdaemon AT freemail DOT ru) 09.06.2013, <16:56> Sorry for my terrible english... -- 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