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]

Ctrl-Break killing subprocess even though handled in parent process


Hi,

I have a dotnet windows console application that runs a bash script as a
subprocess using CreateProcess()  under the covers.

My windows app traps Ctrl-Break via SetConsoleCtrlHandler() and handles it
(returning true from the handler).

I execute the script via the command "bash.exe --login script.sh".

Somehow the Ctrl-Break is reaching the subprocess and causing it to be
killed, which is undesireable.

Is there a way to either prevent the Ctrl-Break from reaching the cygwin
subprocess or telling cygwin/bash to ignore it?

Thanks,
Brien


--
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]