The following golang code catches <kbd>CTRL</kbd>+<kbd>C</kbd> when run from a DOS prompt, but when I run it from Cygwin it doesn't catch anything when <kbd>CTRL</kbd>+<kbd>C</kbd> is pressed.
What does Cygwin do when <kbd>CTRL</kbd>+<kbd>C</kbd> is pressed? My OS is Win7 64 bit running 32 bit Cygwin.
func main() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
go func(){
for sig := range c {
fmt.Println(sig.String())
}
}()
time.Sleep(5000 * time.Millisecond)
fmt.Println("Done")
}