The library that appointed itself signal handler

go dev.to

A commit had gone into go-tool-base's root command about a month before I noticed it, and it had been quietly breaking things for anything downstream that used the controls module the whole time. I didn't find it. Someone raised it with me, which is not the order I'd have chosen, and it's on me for not spotting it when it went in. Two right answers, one process The commit gave the root command a signal-aware execution context: catch SIGINT, cancel the context, let the command wind it

Read Full Tutorial open_in_new
arrow_back Back to Tutorials