We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293c00f commit 4c25083Copy full SHA for 4c25083
cmd/runaceserver/signals.go
@@ -32,8 +32,8 @@ func signalHandler(shutdownFunc func()) chan int {
32
control := make(chan int)
33
// Use separate channels for the signals, to avoid SIGCHLD signals swamping
34
// the buffer, and preventing other signals.
35
- stopSignals := make(chan os.Signal)
36
- reapSignals := make(chan os.Signal)
+ stopSignals := make(chan os.Signal, 2)
+ reapSignals := make(chan os.Signal, 2)
37
signal.Notify(stopSignals, syscall.SIGTERM, syscall.SIGINT)
38
go func() {
39
for {
0 commit comments