From 213997a7302c07f74d35ab0510e80f0ed1c2ff22 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 Feb 2012 15:35:41 -0500 Subject: [PATCH] net: delete debugging print Fixes #3030. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5689071 --- src/pkg/net/fd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pkg/net/fd.go b/src/pkg/net/fd.go index 334da7f22fa..ae1bf2614a2 100644 --- a/src/pkg/net/fd.go +++ b/src/pkg/net/fd.go @@ -252,7 +252,9 @@ func (s *pollServer) Run() { } else { netfd := s.LookupFD(fd, mode) if netfd == nil { - print("pollServer: unexpected wakeup for fd=", fd, " mode=", string(mode), "\n") + // This can happen because the WaitFD runs without + // holding s's lock, so there might be a pending wakeup + // for an fd that has been evicted. No harm done. continue } s.WakeFD(netfd, mode, nil)