Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Nov 2, 2021
1 parent 788fc72 commit 04a083e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/uds.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func removeIfExists(file string) {
}

// HealthListener attaches listener to unix domain socket and runs listener
func HealthListener(site site.API, existC <-chan struct{}) {
func HealthListener(site site.API, exitC <-chan struct{}) {
removeIfExists(SocketPath)

l, err := net.Listen("unix", SocketPath)
Expand All @@ -42,6 +42,6 @@ func HealthListener(site site.API, existC <-chan struct{}) {

go func() { _ = httpd.Serve(l) }()

<-existC
<-exitC
removeIfExists(SocketPath) // cleanup
}

0 comments on commit 04a083e

Please sign in to comment.