godis icon indicating copy to clipboard operation
godis copied to clipboard

fix: misuse unbuffered channel on os signal

Open myselfBZ opened this issue 5 months ago • 0 comments

signal.Notify() requires a buffered channel for signals. Explicitly stated in the documentation

Package signal will not block sending to c: the caller must ensure that c has sufficient buffer space to keep up with the expected signal rate. For a channel used for notification of just one signal value, a buffer of size 1 is sufficient.

myselfBZ avatar Jun 10 '26 03:06 myselfBZ