Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/algoh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func main() {
}()

// Handle signals cleanly
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
signal.Ignore(syscall.SIGHUP)
go func() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/kmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func runKmd(dataDir string, timeoutSecs uint64) {
tryMlockall(log)

// Create a "kill" channel to allow the server to shut down gracefully
kill := make(chan os.Signal)
kill := make(chan os.Signal, 1)

// Timeouts can also send on the kill channel; because signal.Notify
// will not block, this shouldn't cause an issue. From docs: "Package
Expand Down
2 changes: 1 addition & 1 deletion daemon/algod/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (s *Server) Start() {
}()

// Handle signals cleanly
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
signal.Ignore(syscall.SIGHUP)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func main() {
fmt.Printf("%s\n", wp.GetListenAddress())

// Handle signals cleanly
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
signal.Ignore(syscall.SIGHUP)

Expand Down