* 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.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user