This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIGINT generated by Control-C, is not delivered in mintty


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]