libgo: Update Go library to master revision 15489/921e53d4863c.

From-SVN: r195560
This commit is contained in:
Ian Lance Taylor 2013-01-29 20:52:43 +00:00
parent 91bfca5909
commit d6f2922e91
290 changed files with 61242 additions and 49576 deletions

View file

@ -20,6 +20,10 @@ func newFileFD(f *os.File) (*netFD, error) {
}
syscall.CloseOnExec(fd)
syscall.ForkLock.RUnlock()
if err = syscall.SetNonblock(fd, true); err != nil {
closesocket(fd)
return nil, err
}
sotype, err := syscall.GetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_TYPE)
if err != nil {