The current code doesn't really stop listening for signals, it just makes the signal goroutine exit.
That's still good for memory leaks, but you also want to stop delivering signals to the channels
as well, otherwise they don't get their default behavior anymore.
The current code doesn't really stop listening for signals, it just makes the signal goroutine exit. That's still good for memory leaks, but you also want to stop delivering signals to the channels as well, otherwise they don't get their default behavior anymore.