]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix solaris netpoll
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 4 Sep 2014 07:34:01 +0000 (11:34 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 4 Sep 2014 07:34:01 +0000 (11:34 +0400)
TBR=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/141030043

src/pkg/runtime/netpoll.go

index 55f90f8c1e59c4134ebb7e858b9cbaf2e188f159..08da87aa26bdcf8e2d5ab8dd696115bc733e875d 100644 (file)
@@ -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