]> Cypherpunks repositories - gostls13.git/commit
net: fix data race on fd.sysfd
authorDave Cheney <dave@cheney.net>
Sun, 18 Nov 2012 19:53:58 +0000 (06:53 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 18 Nov 2012 19:53:58 +0000 (06:53 +1100)
commitc9856e7d2244670a9c8cd8a4e8aa361b7667575d
tree95cc1e2980a704b4ea2dad344bfdb4f0807338c6
parent0bfece06d7e19b3caba6f1ee0a202e0c90fda23b
net: fix data race on fd.sysfd

Fixes #4369.

Remove the check for fd.sysfd < 0, the first line of fd.accept() tests if the fd is open correctly and will handle the fd being closed during accept.

R=dvyukov, bradfitz
CC=golang-dev
https://golang.org/cl/6843076
src/pkg/net/tcpsock_posix.go