• Russ Cox's avatar
    net: do not use RLock around Accept · 18441e8a
    Russ Cox authored
    It might be non-blocking, but it also might be blocking.
    Cannot take the chance, as Accept might block indefinitely
    and make it impossible to acquire ForkLock exclusively
    (during fork+exec).
    
    Fixes #4737.
    
    R=golang-dev, dave, iant, mikioh.mikioh
    CC=golang-dev
    https://golang.org/cl/7309050
    18441e8a
sys_cloexec.go 1.57 KB