Re: [Msys2-users] Catching Ctrl-C/SIGINT and other signals

2016-12-05 Thread J-Donald Tournier
Any update on this issue...? Main thing I'd like to know is whether or not this is expected behaviour. Is this is a bug in MSYS2 / MinGW that will be fixed in due course, or do we need to think about other approaches to catching a Ctrl-C event? If the example I'd provided is supposed to work,

Re: [Msys2-users] Catching Ctrl-C/SIGINT and other signals

2016-12-01 Thread J-Donald Tournier
Just downloaded Git for Windows, and ran this: $ export PATH=/c/msys64/mingw64/bin/:$PATH $ gcc catch_ctrl-c.cpp -o catch_ctrl-c $ ./catch_ctrl-c.exe - tick - - tick - $ same result - no handler invoked on Ctrl-C... Not sure whether simply adding /c/msys64/mingw64/bin to the PATH was the right

Re: [Msys2-users] Catching Ctrl-C/SIGINT and other signals

2016-12-01 Thread Ray Donnelly
Can you try this on the Git for Windows shell/bash and see if it works there? On Thu, Dec 1, 2016 at 11:44 AM, J-Donald Tournier wrote: > Hi all, > > I'm trying to catch signals and user interrupts in my application to perform > some cleanup, but having trouble getting this

[Msys2-users] Catching Ctrl-C/SIGINT and other signals

2016-12-01 Thread J-Donald Tournier
Hi all, I'm trying to catch signals and user interrupts in my application to perform some cleanup, but having trouble getting this to work on MSYS2 (up to date as of this morning). To get to the bottom of this, I've written this minimal (not) working example: