From 97fdfdb52c28cab9251d1a610382d257c39682da Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 4 Sep 2014 11:34:01 +0400 Subject: [PATCH] runtime: fix solaris netpoll TBR=rsc R=rsc CC=golang-codereviews https://golang.org/cl/141030043 --- src/pkg/runtime/netpoll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/netpoll.go b/src/pkg/runtime/netpoll.go index 55f90f8c1e5..08da87aa26b 100644 --- a/src/pkg/runtime/netpoll.go +++ b/src/pkg/runtime/netpoll.go @@ -273,7 +273,7 @@ func netpolllock(pd *pollDesc) { } func netpollunlock(pd *pollDesc) { - lock(&pd.lock) + unlock(&pd.lock) } // make pd ready, newly runnable goroutines (if any) are returned in rg/wg