This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: SIGINT generated by Control-C, is not delivered in mintty
- From: "Houder" <houder at xs4all dot nl>
- To: cygwin at cygwin dot com, "Ronald Fischer" <ynnor at mm dot st>
- Date: Mon, 20 Jul 2015 14:16:33 +0200
- Subject: Re: SIGINT generated by Control-C, is not delivered in mintty
- Authentication-results: sourceware.org; auth=none
- References: <1436859879 dot 3576693 dot 323109769 dot 13A8B37B at webmail dot messagingengine dot com> <55A9517A dot 5090308 at towo dot net> <1437389942 dot 2804270 dot 328057057 dot 1FF478B2 at webmail dot messagingengine dot com>
> On Fri, Jul 17, 2015, at 21:03, Thomas Wolff wrote:
>> Am 14.07.2015 um 09:44 schrieb Ronald Fischer:
>> > Using Cygwin 64 on Windows 7:
>> >
>> > In a bash or zsh running inside mintty, pressing Control-C has no
>> > effect. In a bash or zsh running in a Windows Console, it works fine.
>> Ronald, can you please clarify on the question: how did you start mintty
>> (desktop shortcut or command line from cygwin console) because that
>> might make a difference.
>
> Indeed, it does! When starting it from a desktop shortcut, it works, but
> when started as a background process, it doesn't.
Ah, so that is the "Cygwin console" # i.e. execution of the file Cygwin.bat, located in the "Windows Cygwin root".
As follows:
PATH (64) = /usr/local/bin:/usr/bin:/drv/c/...
Executing .bash_profile
Executing .bashrc, $- = himBH, login_shell on
64-@@ ps ax
PID PPID PGID WINPID TTY UID STIME COMMAND
4296 1 4296 4296 cons0 1000 13:57:27 /usr/bin/bash
4756 4296 4756 2032 cons0 1000 13:57:30 /usr/bin/ps
Now execute,
64-@@ exec run e:/Cywin64/bin/mintty # i.e. exec run <Windows Cygwin root>/bin/mintty
(window closes)
... a new window opens
PATH (64) = /usr/local/bin:/usr/bin:/drv/c/WINDOWS/system32:/drv/c/WINDOWS:/drv/c/WINDOWS/System32/Wbem:/home/Henri/bin
Executing .bashrc, $- = himBH, login_shell off
64-@@ ps ax
PID PPID PGID WINPID TTY UID STIME COMMAND
4580 2764 4580 3960 pty0 1000 14:05:19 /usr/bin/ps
2764 4984 2764 2352 pty0 1000 14:05:14 /usr/bin/bash
4984 1 4984 4984 ? 1000 14:05:14 /usr/bin/mintty <==== tty != cons
64-@@ ^C <==== responsive to SIGINT
64-@@
Henri
=====
--
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