| commit | 9de7460f1fc510d724a507692abcd8e45f9e5f02 | [log] [tgz] |
|---|---|---|
| author | Christopher Collins <ccollins@apache.org> | Mon Apr 03 16:48:20 2017 -0700 |
| committer | Christopher Collins <ccollins@apache.org> | Mon Apr 03 16:53:26 2017 -0700 |
| tree | b903def6d95b56c27dacf361a82282687705b3e1 | |
| parent | 74d851283af3c31e79cd6f0432c0aa02d93c13f5 [diff] |
unixchild - Ensure socket gets deleted on stop.
diff --git a/util/unixchild/unixchild.go b/util/unixchild/unixchild.go index b417187..91930c0 100644 --- a/util/unixchild/unixchild.go +++ b/util/unixchild/unixchild.go
@@ -219,6 +219,7 @@ select { case <-c.stopped: + c.deleteSocket() c.state = CLIENT_STATE_STOPPED log.Debugf("Stopped client") return @@ -246,6 +247,7 @@ l, err := net.Listen("unix", c.sockPath) if err != nil { + c.deleteSocket() return err }