mingw: make fgetc raise SIGINT if apropriate
commit176478a8bd028a3877d2be49a1e7a49386c095ce
authorErik Faye-Lund <kusmabite@gmail.com>
Tue, 4 Dec 2012 08:10:38 +0000 (4 09:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Dec 2012 16:00:58 +0000 (4 08:00 -0800)
tree06c6fee7c4374be2995276deed56cfd3d6eaaf67
parentf4f549892ac686a9adcf3cb72bee1a11c0566c88
mingw: make fgetc raise SIGINT if apropriate

Set a control-handler to prevent the process from terminating, and
simulate SIGINT so it can be handled by a signal-handler as usual.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c
compat/mingw.h