Bug Tracker Home
Lost your login?
Created on 2018-03-27.18:22:59 by gh, last changed 2018-03-27.18:22:59 by gh.
I'm wondering if that particular bit of code (from 2004) is still useful.
This is only for Windows. The patch that creates this file is from 2004
(all the other patches that touch this file are cosmetic):
Date: Sat Aug 21 20:35:33 -03 2004
* Handle ctrl-c in a win32 console
This only works under a "pure" windows console, not in a cygwin shell
or mingw's rxvt (I don't know why..)
The invokation in Lock.lhs is a bit of a hack(ifdefs, ExitException..),
you might want to do that differently...
Due to the way SetConsoleCtrlHandler works, the threaded rts in ghc
used under windows, and is enabled by this patch.
Also see Darcs.Util.SignalHandler where this code is used.
Relevant online resource on this topic: