* fhandler.h (fhandler_socket::get_connect_state): New method to
return socket connection state. * fhandler_socket.cc (dup): Copy socket connect state to new file handle. * net.cc (cygwin_rcmd): Mark file handles of sockets returned by rcmd() as CONNECTED state. (cygwin_rexec): Similarly for rexec(). (socketpair): Mark both ends of a new socket pair as CONNECTED.
This commit is contained in:
@ -320,6 +320,7 @@ fhandler_socket::dup (fhandler_base *child)
|
||||
if (get_addr_family () == AF_LOCAL)
|
||||
fhs->set_sun_path (get_sun_path ());
|
||||
fhs->set_socket_type (get_socket_type ());
|
||||
fhs->set_connect_state (get_connect_state ());
|
||||
|
||||
if (winsock2_active)
|
||||
{
|
||||
|
Reference in New Issue
Block a user