* fhandler_socket.cc (fhandler_socket::af_local_connect): Drop
setting connect_state to connect_credxchg. (fhandler_socket::af_local_accept): Ditto. (fhandler_socket::recv_internal): Drop ill-advised connect_state check. Add comment so as not to repeat the exercise. * fhandler.h (enum conn_state): Drop now unneeded connect_credxchg state.
This commit is contained in:
@@ -68,8 +68,7 @@ Bug Fixes
|
||||
Addresses: https://cygwin.com/ml/cygwin-developers/2014-10/msg00010.html
|
||||
|
||||
- Don't hang in accept calls if socket is no listener. Set errno to EINVAL
|
||||
instead. Don't hang in read/recv/recvfrom/recvmsg calls if socket is
|
||||
connection oriented and not connected. Set errno to ENOTCONN instead.
|
||||
instead.
|
||||
|
||||
- Don't allow seeking on serial lines and sockets. Set errno to ESPIPE
|
||||
instead.
|
||||
|
Reference in New Issue
Block a user