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: