summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ipc.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-26 08:51:08 +0000
committerderaadt <deraadt@openbsd.org>1997-11-26 08:51:08 +0000
commitb618dc212e211ad3aaac0ff49d5200b83dda6058 (patch)
treea52a1ffdbdc5fd474e7c378439ebe23d80b3ba31 /sys/compat/linux/linux_ipc.c
parentindent (diff)
downloadwireguard-openbsd-b618dc212e211ad3aaac0ff49d5200b83dda6058.tar.xz
wireguard-openbsd-b618dc212e211ad3aaac0ff49d5200b83dda6058.zip
If using async connect(), after select for writeable, if getpeername()
indicates connection failure, you can use getsockopt(SOL_SOCKET, SO_ERROR, ...) to find the error. But the linux people I guess didn't know about this, and changed connect() so that a 2nd connect() call on a failed socket returns the error directly. Fake this demented non-standard behaviour which Linux users are now starting to code to. Talk about dilution of the API...
Diffstat (limited to 'sys/compat/linux/linux_ipc.c')
0 files changed, 0 insertions, 0 deletions