* 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:
Corinna Vinschen
2003-07-05 18:20:13 +00:00
parent 5e276f90b2
commit 4b2cbaeefd
4 changed files with 32 additions and 5 deletions

View File

@ -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)
{