diff options
| author | 1997-11-26 08:51:08 +0000 | |
|---|---|---|
| committer | 1997-11-26 08:51:08 +0000 | |
| commit | b618dc212e211ad3aaac0ff49d5200b83dda6058 (patch) | |
| tree | a52a1ffdbdc5fd474e7c378439ebe23d80b3ba31 /sys/compat/linux/linux_ipc.c | |
| parent | indent (diff) | |
| download | wireguard-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
