ctlsock: add a note about Accept() throwing errors on Close()
This commit is contained in:
parent
6af725ff09
commit
8945f4db95
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user