-
Alex Brainman authored
WSASocket (unlike socket call) allows to create sockets that will not be inherited by child process. So call WSASocket to save on using syscall.ForkLock and calling syscall.CloseOnExec. Some very old versions of Windows do not have that functionality. Call socket, if WSASocket failed, to support these. Change-Id: I2dab9fa00d1a8609dd6feae1c9cc31d4e55b8cb5 Reviewed-on: https://go-review.googlesource.com/72590Reviewed-by: Ian Lance Taylor <iant@golang.org>
44623c2e
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
main_test.go | ||
main_unix_test.go | ||
main_windows_test.go | ||
switch.go | ||
switch_posix.go | ||
switch_stub.go | ||
switch_unix.go | ||
switch_windows.go | ||
sys_cloexec.go | ||
sys_unix.go | ||
sys_windows.go |