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

View File

@ -60,6 +60,9 @@ func (ch *ctlSockHandler) acceptLoop() {
for { for {
conn, err := ch.socket.Accept() conn, err := ch.socket.Accept()
if err != nil { 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) tlog.Warn.Printf("ctlsock: Accept error: %v", err)
break break
} }