summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 932428ba0..30c0000d5 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -33,11 +33,6 @@ details. */
#include "pinfo.h"
#include "registry.h"
-/* We only want to initialize WinSock in a child process if socket
- handles are inheritted. This global allows us to know whether this
- should be done or not */
-int number_of_sockets = 0;
-
extern "C"
{
int h_errno;
@@ -1584,7 +1579,6 @@ fhandler_socket::fhandler_socket (const char *name) :
fhandler_base (FH_SOCKET, name)
{
set_cb (sizeof *this);
- number_of_sockets++;
}
/* sethostent: standards? */
@@ -1601,15 +1595,6 @@ endhostent (void)
{
}
-fhandler_socket::~fhandler_socket ()
-{
- if (--number_of_sockets < 0)
- {
- number_of_sockets = 0;
- system_printf("socket count < 0");
- }
-}
-
int
fhandler_socket::read (void *ptr, size_t len)
{