This is the mail archive of the
mailing list for the Cygwin project.
Re: ctrl-c to windows program causes mintty to hang [1.7.20 / win7]
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: Jeremy Hetzler <jeremyhetzler at gmail dot com>, cygwin at cygwin dot com
- Date: Sun, 9 Jun 2013 17:04:47 +0400
- Subject: Re: ctrl-c to windows program causes mintty to hang [1.7.20 / win7]
- References: <CAOh4nmn1LKeSkX6Fu+hijY22wrjSRhS1eGChwvn9K+Q+WybHFQ at mail dot gmail dot com>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Jeremy Hetzler!
> - Open mintty
> - Run a Windows program like c:\windows\system32\ping.exe
> - While the Windows program is running, press ctrl-c
> - 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.
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.
Full path: C:\Programs\CygWin\bin\bash.exe
Parent PID: 6208 (bash.exe)
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.
Standard console doesn't exhibit the lockup.
Andrey Repin (firstname.lastname@example.org) 09.06.2013, <16:56>
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple