using os.Interrupt to capture SIGINT signal and sending it via signal.Notify function. It works on *nix based OS like Arch but it doesn’t work on Windows 11
For some reason, my program just exits whenever I try to interrupt it using “ctrl+c”. I’m not able to catch that interrupt.
It’s not good because I want to do a graceful shutdown.
Oh ok i missed the part, so that's does not work only on Windows
It used to work before. Wait let me check if it works on Win10
Not sure if that helps but here goes https://github.com/golang/go/issues/21905
Обсуждают сегодня