ctlsock: add a note about Accept() throwing errors on Close()

This commit is contained in:
Jakob Unterwurzacher 2016-12-10 15:01:00 +01:00
parent 6af725ff09
commit 8945f4db95
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ func (ch *ctlSockHandler) acceptLoop() {
for {
conn, err := ch.socket.Accept()
if err != nil {
// TODO Can this warning trigger when the socket it closed on
// program exit? I have never observed it, but the documentation
// says that Close() unblocks Accept().
tlog.Warn.Printf("ctlsock: Accept error: %v", err)
break
}