diff options
author | bluhm <> | 2015-01-13 17:35:35 +0000 |
---|---|---|
committer | bluhm <> | 2015-01-13 17:35:35 +0000 |
commit | 9d1112e0335b8725290afa68e01914dbc2df0606 (patch) | |
tree | 675defc54ce1d8f4c3d5203592fb373c717de34d /src/lib/libc/stdlib/random.c | |
parent | fb6f4574b472c3157361e3f9a0ca5a2d11f47dae (diff) | |
download | openbsd-9d1112e0335b8725290afa68e01914dbc2df0606.tar.gz openbsd-9d1112e0335b8725290afa68e01914dbc2df0606.tar.bz2 openbsd-9d1112e0335b8725290afa68e01914dbc2df0606.zip |
For non-blocking sockets tls_connect_fds() could fail with EAGAIN.
Use the same logic from the read, write, accept functions to inform
the caller wether a readable or writable socket is needed. After
that event, the connect function must be called again. All the
checks before connecting are done only once.
OK tedu@
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
0 files changed, 0 insertions, 0 deletions