[darcs-devel] darcs patch

David Roundy droundy at abridgegame.org
Mon Aug 23 04:06:46 PDT 2004


On Sat, Aug 21, 2004 at 07:48:13PM -0400, peter at zarquon.se wrote:
> 
> Sun Aug 22 01:35:33 CEST 2004  peter at zarquon.se
>   * 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 must be
>   used under windows, and is enabled by this patch.

Looks reasonable to me.  Thanks!

I've moved the invocation of withCtrlCHandler into SignalHandler.lhs, which
means it'll be invoked whether or not a lock is needed, so darcs will
always clean up after itself on ctrl-C.  Also, the behavior will be the
same as on POSIX systems--namely darcs will exit with the message
"Interrupted!".

Now if we can just get rxvt etc fixed, that would be great!
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-devel mailing list