This is the mail archive of the
mailing list for the Cygwin project.
- From: Michi Henning <michi at zeroc dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 31 Dec 2003 13:38:50 +1000
- Subject: SetConsoleCtrlHandler problem
- Organization: ZeroC, Inc.
it appears that Windows binaries won't run correctly under cygwin/bash
if they use SetConsoleCtrlHandler(). I've attached a trivial program
below. If you run this from a Windows console window, it prints
"handler called" every time you hit Ctrl-C. When run from a cygwin bash
window, the program exits after calling the handler with status 130.
Shouldn't the same binary behave identically, regardless of whether
I run it from cygwin/bash or a console window?
I'd appreciate any help to get the Windows behavior for such binaries
static BOOL handler(DWORD sig)
std::cout << "handler called" << std::endl;
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html