]> Cypherpunks repositories - gostls13.git/commit
net: Remove an unmatched unlock of ForkLock
authorRobert Obryk <robryk@gmail.com>
Sun, 27 Apr 2014 02:59:00 +0000 (19:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 27 Apr 2014 02:59:00 +0000 (19:59 -0700)
commit4c129c083bd74dcd3192582551e168cde02e7914
tree68af3b68f8997ed76dbdca7a338822899d3d3e37
parent9d7b9fb7d01c831e67b82f352676097835af01fc
net: Remove an unmatched unlock of ForkLock

Remove an RUnlock of syscall.ForkLock with no matching RLock.
Holding ForkLock in netFD.dup is unnecessary: dupCloseOnExecOld
locks and unlocks the lock on its own and dupCloseOnExec doesn't
need the ForkLock to be held.

LGTM=iant
R=golang-codereviews, bradfitz, iant
CC=golang-codereviews
https://golang.org/cl/99800044
src/pkg/net/fd_unix.go