Skip to content

Commit a2d3922

Browse files
committed
Make signalChan buffered
1 parent 45b9570 commit a2d3922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (s *Server) Run(stopChan, doneChan chan struct{}) error {
261261

262262
// Run until caller closes stopChan or blip process catches a signal
263263
status.Blip(status.SERVER, "running since %s", blip.FormatTime(time.Now()))
264-
signalChan := make(chan os.Signal)
264+
signalChan := make(chan os.Signal, 1)
265265
defer close(signalChan)
266266
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM, syscall.SIGUSR1)
267267
for {

0 commit comments

Comments
 (0)