diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-26 00:52:21 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-26 00:52:21 +0000 |
commit | 4eafa56ec21fe0f92d28ec65abf53a44e8730b4d (patch) | |
tree | e1ed89a3b6a191acacca7784c5e66eb83b38b0e6 /winsup/cygwin/net.cc | |
parent | ef42416e99500d963cb7a1925b1028ceda9cc29a (diff) | |
download | cygnal-4eafa56ec21fe0f92d28ec65abf53a44e8730b4d.tar.gz cygnal-4eafa56ec21fe0f92d28ec65abf53a44e8730b4d.tar.bz2 cygnal-4eafa56ec21fe0f92d28ec65abf53a44e8730b4d.zip |
* dcrt0.cc (quoted): Fix problem where ' quoted strings were skipped.
* fhandler.h (fhandler_socket::~fhandler_socket): Delete declaration.
* net.cc: Remove unnecessary "number_of_sockets" usage.
(fhandler_socket::fhandler_socket): Ditto.
(fhandler_socket::~fhandler_socket): Delete definition.
* spawn.cc (spawn_guts): Force first argument passed to CreateProcess as a
command line to be windows style.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 15 |
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) { |